File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ NativeQuery.prototype.submit = function (client) {
137137
138138 // check if the client has already executed this named query
139139 // if so...just execute it again - skip the planning phase
140- // check for undefined, not falsy: the text can be empty
141140 if ( client . namedQueries [ this . name ] !== undefined ) {
142141 if ( this . text && client . namedQueries [ this . name ] !== this . text ) {
143142 const err = new Error ( `Prepared statements must be unique - '${ this . name } ' was used for a different statement` )
Original file line number Diff line number Diff line change @@ -183,7 +183,6 @@ class Query extends EventEmitter {
183183 }
184184
185185 hasBeenParsed ( connection ) {
186- // check for undefined, not falsy: the text can be empty
187186 return (
188187 this . name &&
189188 ( connection . parsedStatements [ this . name ] !== undefined ||
You can’t perform that action at this time.
0 commit comments