Skip to content

v0.2.0

Choose a tag to compare

@kenshaw kenshaw released this 03 Nov 22:50
· 4 commits to main since this release

A UUID binds as a RAW(16), and a CLOB or a BLOB with an IS JSON check reads.

go get github.com/xo/oracle@v0.2.0

New

  • A uuid.UUID of the standard library binds as a RAW(16), which is how
    Oracle stores a UUID. So do a *uuid.UUID and a sql.Null[uuid.UUID],
    and a nil pointer or a NULL binds as a NULL RAW. A []uuid.UUID binds
    as a batch. An OUT into a uuid.UUID needs no size. v0.1.x refused a
    uuid.UUID with ORA-01484.
  • A RAW(16) scans into a *uuid.UUID, and into *any as a []byte, as
    every RAW does. D37 in docs/PLAN.md says why.

Fixed

  • A CLOB or a BLOB with an IS JSON check failed to read in the default
    inline LOB mode, with TTC error: received code 0. It now reads as any
    other CLOB or BLOB. With lob_fetch=stream it worked already.

The API of v0.1.1 is unchanged.