MCPcopy Index your code
hub / github.com/brianc/node-postgres / _handleEmptyQuery

Method _handleEmptyQuery

packages/pg/lib/client.js:469–478  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

467 }
468
469 _handleEmptyQuery(msg) {
470 const activeQuery = this._getActiveQuery()
471 if (activeQuery == null) {
472 const error = new Error('Received unexpected emptyQuery message from backend.')
473 this._handleErrorEvent(error)
474 return
475 }
476 // delegate emptyQuery to active query
477 activeQuery.handleEmptyQuery(this.connection)
478 }
479
480 _handleCommandComplete(msg) {
481 const activeQuery = this._getActiveQuery()

Callers

nothing calls this directly

Calls 3

_getActiveQueryMethod · 0.95
_handleErrorEventMethod · 0.95
handleEmptyQueryMethod · 0.45

Tested by

no test coverage detected