We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5913ffd + d21e643 commit 43f34ddCopy full SHA for 43f34dd
lib/mysql.js
@@ -404,7 +404,7 @@ MySQL.prototype.fromColumnValue = function(prop, val) {
404
// MySQL allows, unless NO_ZERO_DATE is set, dummy date/time entries
405
// new Date() will return Invalid Date for those, so we need to handle
406
// those separate.
407
- if (!val || val == '0000-00-00 00:00:00' || val == '0000-00-00') {
+ if (val == '0000-00-00 00:00:00') {
408
val = null;
409
}
410
break;
0 commit comments