From: Dagfinn Ilmari Mannsåker Date: Wed, 21 Apr 2010 00:35:18 +0000 (+0100) Subject: fix case in DB2 CURRENT_TIMESTAMP rewrite check X-Git-Tag: 0.07000~59 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c34195d7884ecae33a34d6067f7bfa3dfa210d5e;p=dbsrgits%2FDBIx-Class-Schema-Loader.git fix case in DB2 CURRENT_TIMESTAMP rewrite check --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm b/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm index b6963be..ede73ae 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm @@ -126,7 +126,7 @@ sub _columns_info_for { $info->{is_auto_increment} = 1; } - if (eval { lc ${ $info->{default_value} } }||'' eq 'CURRENT TIMESTAMP') { + if (eval { lc ${ $info->{default_value} } }||'' eq 'current timestamp') { ${ $info->{default_value} } = 'CURRENT_TIMESTAMP'; delete $info->{size}; }