From: Rafael Kitover Date: Mon, 10 May 2010 19:07:13 +0000 (-0400) Subject: fix syntax error X-Git-Tag: 0.07000~18 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-Schema-Loader.git;a=commitdiff_plain;h=45321edada71a4dbcf47c19ee55af4d08c2ba095 fix syntax error --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm index 0ed3070..52c7489 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm @@ -228,7 +228,7 @@ EOF } # alias now() to current_timestamp for deploying to other DBs - if ((eval { lc ${ $info->{default_value} }||'') eq 'now()' }) { + if ((eval { lc ${ $info->{default_value} } }||'') eq 'now()') { # do not use a ref to a constant, that breaks Data::Dump output ${$info->{default_value}} = 'current_timestamp'; } diff --git a/t/12pg_common.t b/t/12pg_common.t index 8b18c58..7d4f5ab 100644 --- a/t/12pg_common.t +++ b/t/12pg_common.t @@ -20,6 +20,8 @@ my $tester = dbixcsl_common_tests->new( # Numeric Types boolean => { data_type => 'boolean' }, bool => { data_type => 'boolean' }, + 'bool default false' + => { data_type => 'boolean', default_value => \'false' }, bigint => { data_type => 'bigint' }, int8 => { data_type => 'bigint' },