You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem Cut and paste text showing the command you ran. No screenshots. Use a gist for long screen output and logs: see https://gist.github.com/.
I have written common class with queryList method where I execute stored proc based on parameter passed to it. It works well but when the stored proc has CLOB, it is not returning the out put from this method.
The code execute till consumestream method after that it is not .
In the consumeStream method, instead queryStream.on('data') event it call queryStream.on('close').
Please advise generic solution to specify clob as string.
Since it is generic method, I cannot write static code for one parmeter.
I found this in your documenation oracledb.fetchAsString = [ oracledb.CLOB ];
When I do this, it is say it is read only property.
I import the library as below. import * as oracledb from 'oracledb';
Please advise generic solution instead specifying for the particular parameter
3. Include a runnable Node.js script that shows the problem.
Run node and show the output of:
"oracledb": "^4.1.0",
What is your Oracle Database version?
Oracle 12G
The text was updated successfully, but these errors were encountered:
It's not clear whether you are calling a PL/SQL procedure, or executing a query. A runnable testcase would have been handy - I remember now why I didn't immediately respond.
If you are calling a stored procedure: For LOBs smaller than 1Gb and that can fit in memory, bind as a STRING.
const sql = `begin myproc(:bv); end;`; // PL/SQL is myproc (p1 out CLOB)
const binds = {bv: {type:oracledb.CLOB, dir: oracledb.BIND_OUT }};
const result = await connection.execute(sql, binds);
const d = await result.outBinds.bv.getData();
console.log(d); // a string with the LOB data
For queries you could try:
import oracledb from 'oracledb';
oracledb.fetchAsString = [ oracledb.CLOB ];
Review the user manual
Describe the problem
Cut and paste text showing the command you ran. No screenshots. Use a gist for long screen output and logs: see https://gist.github.com/.
I have written common class with queryList method where I execute stored proc based on parameter passed to it. It works well but when the stored proc has CLOB, it is not returning the out put from this method.
The code execute till consumestream method after that it is not .
In the consumeStream method, instead queryStream.on('data') event it call queryStream.on('close').
Please advise generic solution to specify clob as string.
Since it is generic method, I cannot write static code for one parmeter.
I found this in your documenation
oracledb.fetchAsString = [ oracledb.CLOB ];
When I do this, it is say it is read only property.
I import the library as below.
import * as oracledb from 'oracledb';
Please advise generic solution instead specifying for the particular parameter
3. Include a runnable Node.js script that shows the problem.
"oracledb": "^4.1.0",
Oracle 12G
The text was updated successfully, but these errors were encountered: