Closed wallride closed 5 years ago
I have replicated the issue and have a patch that corrects it available. @cjbj will push it out to the dev-4.0 branch once it has been tested further internally.
@wallride I pushed the proposed patch to the dev-4.0 branch. Tests are still pending, but please let us know what you find. See https://github.com/oracle/node-oracledb/issues/1053#issuecomment-472233930 for info about installing this development branch.
@cjbj I switched to dev-4.0 and got another error (not related with this particular issue). Probably you are aware of it.
Statement:
begin "TEST".createItem(
P_CODE => :code,
P_CREATED => :created,
P_BIN => :bin,
P_ID => :id
); end;
Bind parameters:
{ code: { type: 2001, dir: 3002, val: 'code-0' },
created: { type: 2014, dir: 3001, val: new Date() },
bin: { type: 2006, dir: 3001, val: <Buffer 30> },
id: { type: 2010, dir: 3003 } } { outFormat: 4002, fetchInfo: {} }
Got an error: Error: NJS-012: encountered invalid bind data type in parameter 2
.
So, I cannot test the patch. :)
Can you provide the full code that you are using? Without that it is very hard to know why you might be getting that error.
@wallride our regressions are passing, so we don't know about it. Please tell us more, as @anthony-tuininga recommended.
@wallride I couldn't reproduce any problem with issue1069.js
@wallride ping?
@wallride Node-oracledb 4.0 has been released with a fix for the original problem. We couldn't reproduce your later report. The release announcement is at https://blogs.oracle.com/opal/oracle-db-named-objects-and-advanced-queuing-support-new-in-node-oracledb-40
Hi again! :) I've got another problem while trying to play with LOBs. It's a problem with unicode characters (tat take more then 1 byte to store). When I write such a character to a CLOB an additional space character (or may be just 0x00 byte) appears after the written chunk. The more special symbols, the more spaces I see... Google and experiments with specifying 'utf8' encoding gave nothing...
Here's a code example to reproduce the problem:
Can anyone explain what am I missing?