Closed gajus closed 9 years ago
It's exposed on a specific connection object (https://github.com/lukeb-uk/node-promise-mysql/blob/master/lib/connection.js#L97), but I'll look at linking it up in the main package.
ah, this has go to do with https://github.com/lukeb-uk/node-promise-mysql/issues/3 and how I use db.query
:
var db = mysql.createConnection(config);
db.query = function (sql, values) {
return db.then(function (connection) {
return connection.query(sql, values);
});
};
In that case it is not relevant to the entire package.
I've actually submitted a pull request to your web-proxy project so that promise-mysql can be used as intended: https://github.com/gajus/web-proxy/pull/1
– https://www.npmjs.com/package/mysql#escaping-query-values
Quick fix until this is resolved in the main package: