From dccc7b6b37bfe37e901aa58119188187bde7d5bb Mon Sep 17 00:00:00 2001 From: AnatolyUss Date: Mon, 14 Sep 2015 01:29:32 +0300 Subject: [PATCH] add explicit case for zero in double column to sanitizeValue method --- migration/FromMySqlToPostgreSql/FromMySqlToPostgreSql.php | 1 + 1 file changed, 1 insertion(+) diff --git a/migration/FromMySqlToPostgreSql/FromMySqlToPostgreSql.php b/migration/FromMySqlToPostgreSql/FromMySqlToPostgreSql.php index 3eb62b5..7f9a9df 100755 --- a/migration/FromMySqlToPostgreSql/FromMySqlToPostgreSql.php +++ b/migration/FromMySqlToPostgreSql/FromMySqlToPostgreSql.php @@ -485,6 +485,7 @@ private function sanitizeValue($strValue) switch ($strValue) { case '0': return '0'; + case '0000-00-00 00:00:00': case '0000-00-00': return '-INFINITY';