woops, pg search path fix needed support for quoted schema names in search paths
Robert Buels [Thu, 6 Aug 2009 20:41:19 +0000 (20:41 +0000)]
lib/DBIx/Class/Storage/DBI/Pg.pm

index e925529..2e516fd 100644 (file)
@@ -43,7 +43,7 @@ sub _dbh_get_autoinc_seq {
       @search_path = ( $schema );
   } else {
       my ($search_path) = $dbh->selectrow_array('SHOW search_path');
-      while( $search_path =~ s/([^,]+),?// ) {
+      while( $search_path =~ s/("[^"]+"|[^,]+),?// ) {
           unless( defined $1 and length $1 ) {
               $self->throw_exception("search path sanity check failed: '$1'")
           }