nodejs-idb-pconnector icon indicating copy to clipboard operation
nodejs-idb-pconnector copied to clipboard

bindParam() is deprecated and you should use bindParameters() instead

Open patrickhrastnik opened this issue 1 year ago • 8 comments

Is your feature request related to a problem? Please describe. Deprecation message The following message shows up on execution of DBPool:prepareExecute:

Statement deprecated As of 1.1.0, bindParam() is deprecated and you should use bindParameters() instead. node_modules/idb-pconnector/lib/dbPool.js:272:23

The "problem": The deprecation message is written to the stderr stream and blocks CI pipelines, if configured to count messages on stderr as errors. Easy to work around by altering the CI pipeline configuration, but not ideal.

Describe the solution you'd like Refactor lib/dbPool.js to use bindParameters instead of bindParam.

patrickhrastnik avatar Mar 27 '23 07:03 patrickhrastnik