fix for pg seq detection.
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / Pg.pm
index a1bdc6d..75b22e4 100644 (file)
@@ -23,13 +23,17 @@ sub get_autoinc_seq {
   while (my $col = shift @pri) {
     my $info = $dbh->column_info(undef,$schema,$table,$col)->fetchrow_arrayref;
     if (defined $info->[12] and $info->[12] =~ 
-      /^nextval\('([^']+)'::(?:text|regclass)\)/)
+      /^nextval\(+'([^']+)'::(?:text|regclass)\)/)
     {
       return $1; # may need to strip quotes -- see if this works
     } 
   }
 }
 
+sub sqlt_type {
+  return 'PostgreSQL';
+}
+
 1;
 
 =head1 NAME