Merge pull request #41 from gierschv/fix-boolean

Fixes boolean conversion when fetching data from database
This commit is contained in:
dgsan 2013-06-28 11:46:37 -07:00
commit e109adc737
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ MySQL.prototype.fromDatabase = function (model, data) {
val = new Date(val.toString().replace(/GMT.*$/, 'GMT'));
break;
case 'Boolean':
val = new Boolean(val);
val = Boolean(val);
break;
}
}