Skip to content

Commit fd6b2be

Browse files
committed
Pull namedPlaceholders from the correct location.
this.config.namedPlaceholders does not exist, you need this.config.connectionConfig.namedPlaceholders
1 parent 1e1de36 commit fd6b2be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pool.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Pool.prototype.end = function (cb) {
126126

127127
Pool.prototype.query = function (sql, values, cb) {
128128
var cmdQuery = Connection.createQuery(sql, values, cb, this.config.connectionConfig);
129-
cmdQuery.namedPlaceholders = this.config.namedPlaceholders;
129+
cmdQuery.namedPlaceholders = this.config.connectionConfig.namedPlaceholders;
130130

131131
this.getConnection(function (err, conn) {
132132
if (err) {
@@ -150,7 +150,7 @@ Pool.prototype.execute = function (sql, values, cb) {
150150
values = null;
151151
}
152152

153-
var useNamedPlaceholders = this.config.namedPlaceholders;
153+
var useNamedPlaceholders = this.config.connectionConfig.namedPlaceholders;
154154

155155
this.getConnection(function (err, conn) {
156156
if (err) {

0 commit comments

Comments
 (0)