oracle / node-oracledb

Oracle Database driver for Node.js maintained by Oracle Corp.
http://oracle.github.io/node-oracledb/
Other
2.24k stars 1.07k forks source link

Debugging ORA-01008 #1536

Closed sschneider-ihre-pvs closed 1 year ago

sschneider-ihre-pvs commented 1 year ago
  1. What versions are you using? oracledb 5.5.0 db 11g

windows 10

  1. Describe the problem

I make a raw sql call to a package with bindings and I face a ORA-01008, but when I execute it manually in any db client it works. So my questions, how do I debug what variable is not referenced correctly? I followed the trail through the js part already but then this._execute makes a leap for the c part I figure. And that is where the power of the node debugger fails me.

pvenkatraman commented 1 year ago

Can you provide more details like:

Thanks

sschneider-ihre-pvs commented 1 year ago

I can't

pvenkatraman commented 1 year ago

ORA-01008 : Not all variables bound, You are obviously missing one or more bind parameter. You need to make sure that you are providing bind parameters for all bind variables.

sharadraju commented 1 year ago

@sschneider-ihre-pvs Please provide us a sample JS code with a redacted version of the SQL statement (with the table and column names changed) that is being passed in the JS app, that reproduces this issue? This will help us to identify which bind parameter is not matched correctly.

stale[bot] commented 1 year ago

This issue has been automatically marked as inactive because it has not been updated recently. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed because it has not been updated for a month.