loopback-connector-mysql/lib
Carl Fürstenberg 1ee79768f2 Add special handling of zero date/time entries
Per MySQL docs
(http://dev.mysql.com/doc/refman/5.7/en/date-and-time-types.html):

  "MySQL permits you to store a “zero” value of '0000-00-00' as a
  “dummy date.” This is in some cases more convenient than using NULL
  values, and uses less data and index space. To disallow '0000-00-00',
  enable the NO_ZERO_DATE mode.

  “Zero” date or time values used through Connector/ODBC are converted
  automatically to NULL because ODBC cannot handle such values."

As we are not using Connector/ODBC we need to handle this ourself.
2016-07-29 14:59:24 +02:00
..
discovery.js insert/update copyright notices 2016-05-03 16:52:03 -07:00
enumFactory.js insert/update copyright notices 2016-05-03 16:52:03 -07:00
migration.js insert/update copyright notices 2016-05-03 16:52:03 -07:00
mysql.js Add special handling of zero date/time entries 2016-07-29 14:59:24 +02:00
transaction.js insert/update copyright notices 2016-05-03 16:52:03 -07:00