Skip to content

Commit

Permalink
Support negative offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
mat128 committed Jun 29, 2017
1 parent b842e6d commit 2db9ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg2mysql.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function pg2mysql($input, $header=true)
$line=str_replace(" timestamp without time zone"," timestamp",$line);

// Strip unsupported timezone information in date fields
$line=preg_replace("/ date DEFAULT '(.*)\+.*'/",' date DEFAULT \'${1}\'',$line);
$line=preg_replace("/ date DEFAULT '(.*)(\+|\-).*'/",' date DEFAULT \'${1}\'',$line);

//time
$line=str_replace(" time with time zone"," time",$line);
Expand Down

0 comments on commit 2db9ba8

Please sign in to comment.