projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
added code to fetch sequence nextval
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Storage
/
DBI
/
Pg.pm
diff --git
a/lib/DBIx/Class/Storage/DBI/Pg.pm
b/lib/DBIx/Class/Storage/DBI/Pg.pm
index
ea5f6f0
..
2373991
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/Pg.pm
+++ b/
lib/DBIx/Class/Storage/DBI/Pg.pm
@@
-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