Applied Brandon Black's patch to PK::Auto::Pg
Matt S Trout [Thu, 24 Nov 2005 23:56:06 +0000 (23:56 +0000)]
lib/DBIx/Class/PK/Auto/Pg.pm

index 52185e5..ab401f8 100644 (file)
@@ -27,7 +27,7 @@ sub get_autoinc_seq {
     while (my $foo = $sth->fetchrow_arrayref){
       if(defined $foo->[12] && $foo->[12] =~ /^nextval/) {
         ($self->{_autoinc_seq}) = $foo->[12] =~ 
-         m!^nextval\('"?([^"']+)"?'::text\)!;
+          m!^nextval\('"?([^"']+)"?'::(?:text|regclass)\)!;
       }
     }
 }