Skip to content

Commit b78a508

Browse files
committed
Add function stub to native result to solve broken test
1 parent ac438e8 commit b78a508

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/native/result.js

+7
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@ NativeResult.prototype.addCommandComplete = function(pq) {
1919
});
2020
}
2121
};
22+
23+
NativeResult.prototype.addRow = function(row) {
24+
// This is empty to ensure pg code doesn't break when switching to pg-native
25+
// pg-native loads all rows into the final result object by default.
26+
// This is because libpg loads all rows into memory before passing the result
27+
// to pg-native.
28+
};

0 commit comments

Comments
 (0)