[Bast-commits] r7564 -
DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI
rbuels at dev.catalyst.perl.org
rbuels at dev.catalyst.perl.org
Fri Sep 4 18:35:19 GMT 2009
Author: rbuels
Date: 2009-09-04 18:35:18 +0000 (Fri, 04 Sep 2009)
New Revision: 7564
Modified:
DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI/Pg.pm
Log:
tweaked comment
Modified: DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI/Pg.pm
===================================================================
--- DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI/Pg.pm 2009-09-04 18:35:10 UTC (rev 7563)
+++ DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI/Pg.pm 2009-09-04 18:35:18 UTC (rev 7564)
@@ -54,10 +54,10 @@
( $schema, $table ) = ( $1, $2 );
}
+ # use DBD::Pg to fetch the column info if it is recent enough to
+ # work. otherwise, use custom SQL
my $seq_expr = $DBD::Pg::VERSION > 2.015001
- # use DBD::Pg to fetch the column info if it is recent enough to work
? eval{ $dbh->column_info(undef,$schema,$table,$col)->fetchrow_hashref->{COLUMN_DEF} }
- # otherwise, use a custom SQL method
: $self->_dbh_get_column_default( $dbh, $schema, $table, $col );
# if no default value is set on the column, or if we can't parse the
More information about the Bast-commits
mailing list