Repository navigation
A RAW reports its length, and a decimal of another package binds and scans.
go get github.com/xo/oracle@v0.3.0New
sql.ColumnType.Length()gives the declared length of aRAWin bytes,
soSYS_GUID()and aRAW(16)column give 16. A caller can tell a
RAW(16), which holds a GUID, from anotherRAW. AVARCHAR2,
NVARCHAR2,CHARandNCHARgive their length in characters. A
LONG,LONG RAW,CLOB,NCLOB,BLOBandBFILEgive
math.MaxInt64, asdatabase/sqlasks for a type with no limit.
NUMBER,DATEand the other types of fixed length give none. v0.2.0
gave a length for the string types only.- A decimal of another package binds as a
NUMBER, and scans from one with
every digit, when it has theDecomposeandComposemethods that
database/sqluses to pass a decimal as its parts. This holds for an
argument, an attribute of an object, and an OUT or IN OUT of PL/SQL. A
nil one binds as a NULL. v0.2.0 failed to bind such a decimal with "no
parameter coder registered", and failed to scan into one.
The API of v0.2.0 is unchanged.