From b78a508420a33a31dffebee1d2ea025a8503993b Mon Sep 17 00:00:00 2001 From: Frederick Stark Date: Fri, 12 Feb 2016 13:38:38 +1100 Subject: [PATCH] Add function stub to native result to solve broken test --- lib/native/result.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/native/result.js b/lib/native/result.js index 485f36b..9fd23f5 100644 --- a/lib/native/result.js +++ b/lib/native/result.js @@ -19,3 +19,10 @@ NativeResult.prototype.addCommandComplete = function(pq) { }); } }; + +NativeResult.prototype.addRow = function(row) { + // This is empty to ensure pg code doesn't break when switching to pg-native + // pg-native loads all rows into the final result object by default. + // This is because libpg loads all rows into memory before passing the result + // to pg-native. +};