Skip to content

Commit

Permalink
Merge pull request sidorares#106 from creagraphy/master
Browse files Browse the repository at this point in the history
Solve incompatibility with autoload
  • Loading branch information
sidorares committed May 29, 2014
2 parents 40b0a9d + c922809 commit 7bacacf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packets/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Execute.prototype.toPacket = function()
for (i=0; i < this.parameters.length; i++)
{
if (this.parameters[i] !== null) {
if (toString.call(this.parameters[i]) == '[object Date]') {
if (Object.prototype.toString.call(this.parameters[i]) == '[object Date]') {
var d = this.parameters[i];
// TODO: move to asMysqlDateTime()
this.parameters[i] = [d.getFullYear(), d.getMonth() + 1, d.getDate()].join('-') +
Expand Down

0 comments on commit 7bacacf

Please sign in to comment.