sijms / go-ora

Pure go oracle client
MIT License
786 stars 174 forks source link

Falsely assuming UDT with null.String args in v2.7.* #427

Closed justinosbaldiston closed 1 year ago

justinosbaldiston commented 1 year ago

Similar to #405 and #293 Both these issues were closed, but the issue still exists

When passing a null.String (from gopkg.in/guregu/null.v4) into the query, it returns the error "call register type before use user defined type (UDT)" If the null.String is Valid then the query works fine, but when it's not valid (eg the value is NULL) the above error is returned

eg, where :1 is a null.String that is null (valid=false), using SelectContext SELECT * FROM <TABLE> WHERE :1 = <COLUMN> returns "call register type before use user defined type (UDT)"

This code runs fine on v2.6.17, it's erroring on all versions of v2.7 that I've tried, including latest (v2.7.13)

sijms commented 1 year ago

fixed in next release

sijms commented 1 year ago

fixed in v2.7.14

justinosbaldiston commented 1 year ago

Fixed now, thanks