added code to fetch sequence nextval
Johannes Plunien [Wed, 7 Nov 2007 17:20:31 +0000 (17:20 +0000)]
lib/DBIx/Class/Storage/DBI/Pg.pm

index ea5f6f0..2373991 100644 (file)
@@ -73,6 +73,12 @@ sub bind_attribute_by_data_type {
   }
 }
 
+sub _sequence_fetch {
+  my ( $self, $type, $seq ) = @_;
+  my ($id) = $self->dbh->selectrow_array("SELECT nextval('${seq}')");
+  return $id;
+}
+
 1;
 
 =head1 NAME