diff --git a/lib/client.js b/lib/client.js index 8c281725..3b688f94 100644 --- a/lib/client.js +++ b/lib/client.js @@ -313,7 +313,9 @@ Client.prototype.query = function(config, values, callback) { if(this.binary && !query.binary) { query.binary = true; } - query._result._getTypeParser = this._types.getTypeParser.bind(this._types); + if(query._result) { + query._result._getTypeParser = this._types.getTypeParser.bind(this._types); + } this.queryQueue.push(query); this._pulseQueryQueue();