Skip to content

Commit 43f34dd

Browse files
committed
2 parents 5913ffd + d21e643 commit 43f34dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mysql.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ MySQL.prototype.fromColumnValue = function(prop, val) {
404404
// MySQL allows, unless NO_ZERO_DATE is set, dummy date/time entries
405405
// new Date() will return Invalid Date for those, so we need to handle
406406
// those separate.
407-
if (!val || val == '0000-00-00 00:00:00' || val == '0000-00-00') {
407+
if (val == '0000-00-00 00:00:00') {
408408
val = null;
409409
}
410410
break;

0 commit comments

Comments
 (0)