Skip to content

Commit 04ba97f

Browse files
author
Aurynn Shaw
committed
Zero-length resultsets are no longer an error.
1 parent 2d0ee10 commit 04ba97f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/postgres-pure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ function Prepared(sql, conn /*, use_named */) {
628628
callback();
629629
}
630630
else {
631-
eP.emit("error", "Complete reached without records or NoData state.");
631+
callback(null, []);
632632
}
633633
});
634634
eP.on("BindComplete", function () {

0 commit comments

Comments
 (0)