We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40b0a9d + c922809 commit 7bacacfCopy full SHA for 7bacacf
lib/packets/execute.js
@@ -30,7 +30,7 @@ Execute.prototype.toPacket = function()
30
for (i=0; i < this.parameters.length; i++)
31
{
32
if (this.parameters[i] !== null) {
33
- if (toString.call(this.parameters[i]) == '[object Date]') {
+ if (Object.prototype.toString.call(this.parameters[i]) == '[object Date]') {
34
var d = this.parameters[i];
35
// TODO: move to asMysqlDateTime()
36
this.parameters[i] = [d.getFullYear(), d.getMonth() + 1, d.getDate()].join('-') +
0 commit comments