You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQL/Translator/Producer/PostgreSQL.pm has this line:
'CURRENT_TIMESTAMP' => 'CURRENT_TIMESTAMP',
It causes the string to be quoted regardless of a ref or string is passed to default_value. A reference must be generated by the _apply_default_value function, so the line should be changed to:
'CURRENT_TIMESTAMP' => \'CURRENT_TIMESTAMP',
In fact, the 'now()' replacement should also be a ref and the replacement should add the other Pg datetime variants: CURRENT_TIME, CURRENT_DATE, LOCALTIME, LOCALSTAMP. There might even be other Pg magic functions that should be added.
The text was updated successfully, but these errors were encountered:
SQL/Translator/Producer/PostgreSQL.pm has this line:
'CURRENT_TIMESTAMP' => 'CURRENT_TIMESTAMP',
It causes the string to be quoted regardless of a ref or string is passed to default_value. A reference must be generated by the _apply_default_value function, so the line should be changed to:
'CURRENT_TIMESTAMP' => \'CURRENT_TIMESTAMP',
In fact, the 'now()' replacement should also be a ref and the replacement should add the other Pg datetime variants: CURRENT_TIME, CURRENT_DATE, LOCALTIME, LOCALSTAMP. There might even be other Pg magic functions that should be added.
The text was updated successfully, but these errors were encountered: