Closed pvanek closed 8 years ago
it looks like there are two issues: 1) currently OracleSqlUtil is binding all values twice due to the way the merge stmt is constructed, and it appears that Oracle can only handle a direct bind of only buffer with > 4000 bytes of type LONG or *LOB 2) the oracle driver is performing direct binds for NT_BINARY (-> BLOB, SQLT_BIN)
changing OracleSqlUtil to bind only once results in the following error when binding binary data > 4000 bytes:
ORA-01461: can bind a LONG value only for insert into a LONG column
(the SQLT_* bind buffer type does not seem to have an effect as long as direct binds are used)
Using a binary value <= 4000 bytes is successful with the single bind stmt with the same data types.
invisible = bug in unreleased functionality
Maybe it's related to BLOB content... when I create simple small BLOB (id 0) it's passed through.
Test case: