Closed dvdbng closed 10 years ago
With the recent update (v0.2.9), I get this error.
The code doesn't appear to be in the repository, but the function goes like this
BaseSQL.prototype.escapeId = function(id) { if (this.schema.settings.slave) { return '"' + id.toString().replace(/["\n]/g, '') + '"'; } else { var idNumber = Number(data.id); if (isNaN(idNumber)) { throw new Error('id is not a number'); } return idNumber; } }
And changing var idNumber = Number(data.id); for var idNumber = Number(id); works
var idNumber = Number(data.id);
var idNumber = Number(id);
(Also, a semi colon at the end of the function would be nice to keep JSHint quiet)
With the recent update (v0.2.9), I get this error.
The code doesn't appear to be in the repository, but the function goes like this
And changing
var idNumber = Number(data.id);
forvar idNumber = Number(id);
works