Skip to content

Possible error in rowCount returned by native bindings #708

@colin-chapman

Description

@colin-chapman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions