-
-
Save TimeBomb/28bbb509021e459306b2 to your computer and use it in GitHub Desktop.
node-mysql2 affectedRows issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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