-
Notifications
You must be signed in to change notification settings - Fork 2.5k
mysql/lib/protocol/SqlString.js:71 TypeError: undefined is not a function #1058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi! Can you provide a little simple program or some code to reproduce? It looks like it's caused by a bad call into this library. |
Mainly what is on line 14 in wordpress-shopify-importer/index.js ? |
This is all I've got. I was trying to hide what I was working on. Whoops. var mysql = require('mysql')
var options = {
host: process.env.MYSQL_HOST,
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASSWORD,
database: process.env.MYSQL_DATABASE,
charset: "utf8"
}
var connection = mysql.createConnection(options)
connection.connect()
connection.query(function(err, rows, fields) {
if (err) throw err
console.log(rows.length)
});
connection.end() |
No query, duh. |
lol, thanks. Looks like our arguments are probably too forgiving, haha, because we should probably throw a useful error on a missing query ;) |
json encoded data is represented as bytes however it should be interpolated as a string Fixes mysqljs#819
…js#1059) Following mysqljs#1058, in order for the driver.Value to get as a json.RawMessage, the converter should accept it as a valid value, and handle it as bytes in case where interpolation is disabled
The text was updated successfully, but these errors were encountered: