Skip to content

Commit

Permalink
Merge a9addcc into b43ba76
Browse files Browse the repository at this point in the history
  • Loading branch information
KES777 committed Jul 10, 2018
2 parents b43ba76 + a9addcc commit f8a5fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Producer/PostgreSQL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ sub alter_field
# ALTER TABLE users ALTER COLUMN column SET DEFAULT ThisIsUnescaped;
if(ref $default_value eq "SCALAR" ) {
$default_value = $$default_value;
} elsif( defined $default_value && $to_dt =~ /^(character|text)/xsmi ) {
} elsif( defined $default_value && $to_dt =~ /^(character|text|timestamp|date)/xsmi ) {
$default_value = __PACKAGE__->_quote_string($default_value);
}

Expand Down

0 comments on commit f8a5fdc

Please sign in to comment.