Skip to content

Instantly share code, notes, and snippets.

@TimeBomb
Created August 14, 2013 07:13
Show Gist options
  • Save TimeBomb/28bbb509021e459306b2 to your computer and use it in GitHub Desktop.
Save TimeBomb/28bbb509021e459306b2 to your computer and use it in GitHub Desktop.
node-mysql2 affectedRows issue
connection.query('SELECT 1+? as test1', [10], function(err, rows) {
// rows.affectedRows DOES exist
});
// But with...
connection.execute('SELECT 1+? as test1', [10], function(err, rows) {
// rows.affectedRows does NOT exist
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment