You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
require('pg').native doesn't work with query row event #743
If I uncomment the query.on('row'...) section below, node complains that the function addRow does not exist. When I just use require('pg') it works properly.
Hi all, I just came across this today when switching to pg-native. Per this note in the project readme I believe this method should be available, even if its a no-op when using libpq:
node-postgres abstracts over the pg-native module to provide exactly the same interface as the pure JavaScript version. No other code changes are required. If you find yourself having to change code other than the require statement when switching from require('pg') to require('pg').native please report an issue.
Activity
deyhle commentedon May 7, 2015
+1
Tested with node 0.12.2.
Apparently the
resultparameter is noResultobject. My debugger shows that it ismodule.exportsinstead.JSON.stringify(result)returns:vaseker commentedon Jun 23, 2015
+1
node 0.12.4
pg@4.4.0
pg-native@1.8.1
traviscrawford commentedon Jan 29, 2016
Hi all, I just came across this today when switching to
pg-native. Per this note in the project readme I believe this method should be available, even if its a no-op when usinglibpq:coagmano commentedon Feb 2, 2016
+1
node 4.2.4
coagmano commentedon Feb 12, 2016
Made a PR ^^ to fix this