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

Method _checkForMultirow

packages/pg/lib/query.js:60–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 _checkForMultirow() {
61 // if we already have a result with a command property
62 // then we've already executed one query in a multi-statement simple query
63 // turn our results into an array of results
64 if (this._result.command) {
65 if (!Array.isArray(this._results)) {
66 this._results = [this._result]
67 }
68 this._result = new Result(this._rowMode, this._result._types)
69 this._results.push(this._result)
70 }
71 }
72
73 // associates row metadata from the supplied
74 // message with this query object

Callers 2

handleRowDescriptionMethod · 0.95
handleCommandCompleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected