From: Robert Buels <rmb32@cornell.edu>
Date: Fri, 4 Sep 2009 18:35:30 +0000 (+0000)
Subject: oops, DBD::Pg 2.15.1 should be included in working versions
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fec29682aaddef07897243fc54a22f11e26d3a3c;p=dbsrgits%2FDBIx-Class-Historic.git

oops, DBD::Pg 2.15.1 should be included in working versions
---

diff --git a/lib/DBIx/Class/Storage/DBI/Pg.pm b/lib/DBIx/Class/Storage/DBI/Pg.pm
index 83659be..dd9e339 100644
--- a/lib/DBIx/Class/Storage/DBI/Pg.pm
+++ b/lib/DBIx/Class/Storage/DBI/Pg.pm
@@ -56,7 +56,7 @@ sub _dbh_get_autoinc_seq {
 
   # 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
+  my $seq_expr =  $DBD::Pg::VERSION >= 2.015001
       ? eval{ $dbh->column_info(undef,$schema,$table,$col)->fetchrow_hashref->{COLUMN_DEF} }
       : $self->_dbh_get_column_default( $dbh, $schema, $table, $col );