We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f88e38 commit e8fdbdcCopy full SHA for e8fdbdc
lib/mysql.js
@@ -437,7 +437,7 @@ MySQL.prototype.fromColumnValue = function(prop, val) {
437
// MySQL allows, unless NO_ZERO_DATE is set, dummy date/time entries
438
// new Date() will return Invalid Date for those, so we need to handle
439
// those separate.
440
- if (val == '0000-00-00 00:00:00') {
+ if (!val || val == '0000-00-00 00:00:00' || val == '0000-00-00') {
441
val = null;
442
}
443
break;
0 commit comments