Mysql: affectedRows and changedRows are undefined in SELECT query result

Created on 15 May 2019  路  1Comment  路  Source: mysqljs/mysql

I'm using mysql v2.17.1 to access MySQL v5 DB. Here are the screenshots from my project:
code
In my code I log the results from a simple SELECT query: select * from users; but both affectedRows and changedRows are undefined

Screen Shot 2019-05-15 at 16 24 33

Please help. Thank you in advance.

mysql server behavior

>All comments

The mysql protocol does not return those values for SELECT statements.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skilbjo picture skilbjo  路  3Comments

abou7mied picture abou7mied  路  4Comments

winzig picture winzig  路  4Comments

Axxxx0n picture Axxxx0n  路  3Comments

johnrc picture johnrc  路  3Comments