Skip to content

Commit 7bacacf

Browse files
committed
Merge pull request #106 from creagraphy/master
Solve incompatibility with autoload
2 parents 40b0a9d + c922809 commit 7bacacf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/packets/execute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Execute.prototype.toPacket = function()
3030
for (i=0; i < this.parameters.length; i++)
3131
{
3232
if (this.parameters[i] !== null) {
33-
if (toString.call(this.parameters[i]) == '[object Date]') {
33+
if (Object.prototype.toString.call(this.parameters[i]) == '[object Date]') {
3434
var d = this.parameters[i];
3535
// TODO: move to asMysqlDateTime()
3636
this.parameters[i] = [d.getFullYear(), d.getMonth() + 1, d.getDate()].join('-') +

0 commit comments

Comments
 (0)