When performing an insert, update, or delete using the pure JavaScript implementation, the rowCount attribute of the query result is a number:
JSON.stringify(result);
// {"command":"INSERT","rowCount":1,...}
I switched to the native bindings - with no other changes to my code - and the rowCount attribute is now a string:
JSON.stringify(result);
// {"command":"INSERT","rowCount":"1",...}
You asked that we report any required code changes other than modifying the require statement, so I'm passing this along. Thanks so much!
I'm using:
PostgreSQL 9.3.5
Ubuntu 12.04
node-postgres 4.1.1
node-pg-native 1.7.1
When performing an insert, update, or delete using the pure JavaScript implementation, the rowCount attribute of the query result is a number:
I switched to the native bindings - with no other changes to my code - and the rowCount attribute is now a string:
You asked that we report any required code changes other than modifying the
requirestatement, so I'm passing this along. Thanks so much!I'm using:
PostgreSQL 9.3.5
Ubuntu 12.04
node-postgres 4.1.1
node-pg-native 1.7.1