Closed felipenoris closed 5 years ago
Looks like it also happens with BLOBs. Is that why you always set values to a BLOB using variables, like in 6a4a6f17d0391e36d637583c51adcc2cdba71ba0 ?
Wait, I might be doing something wrong... I'll reopen if it persists after some more tests.
I have the same problem, how did you end up solving this @felipenoris?
@lovetodream in short, you must always use a Variable.
See https://felipenoris.github.io/Oracle.jl/stable/tutorial/#Writing-to-a-BLOB
Hi! I'm trying to add support for RAW columns. I understand I should use
dpiData_setBytes
to set adpiData
to a vector of bytes, the same way I should do with strings.But, what happens is that it fails on executing the statement after I bind a vector of bytes.
Error message:
In the line
stmt[1] = bytes
what happens is:dpiData
dpiData_setBytes
, along with the pointer and length of thebytes
vectordpiData
value todpiStmt_bindValueByPos
to set the value at the first position.This setup works well for VARCHAR/NVARCHAR fields. It also works to set and get values to a in-memory
dpiData
.Is there something else I should be aware of when binding to RAW fields?