-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
I got "Error: Wrong number of values to escape" while trying to run the following code. Am I missing something?
var mysql = require('db-mysql');
new mysql.Database({
hostname: 'localhost',
user: 'user',
password: 'password',
database: 'database'
}).connect(function(error) {
if (error) {
return console.log("CONNECTION ERROR: " + error);
} else {
this.query().execute("INSERT INTO test (`test`) VALUES ('?');", ['test value'], function(error, rows) {
if (error) {
console.log(error);
} else {
console.log("ok");
}
});
}
});
Metadata
Metadata
Assignees
Labels
No labels