Fixes boolean conversion when fetching data from database

This commit is contained in:
Vincent Giersch 2013-06-28 17:44:12 +01:00
parent c7098230d4
commit 6fa023250b
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;
}
}