We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 442d304 commit ee3fd24Copy full SHA for ee3fd24
lib/connection.js
@@ -488,6 +488,11 @@ class Connection extends EventEmitter {
488
_resolveNamedPlaceholders(options) {
489
let unnamed;
490
if (this.config.namedPlaceholders || options.namedPlaceholders) {
491
+ if (Array.isArray(options.values)) {
492
+ // if an array is provided as the values, assume the conversion is not necessary.
493
+ // this allows the usage of unnamed placeholders even if the namedPlaceholders flag is enabled.
494
+ return
495
+ }
496
if (convertNamedPlaceholders === null) {
497
convertNamedPlaceholders = require('named-placeholders')();
498
}
0 commit comments