| 1 | package DBR::Util::Connection::Pg; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use base 'DBR::Util::Connection'; | ||
| 5 | |||
| 6 | sub getSequenceValue{ | ||
| 7 | my $self = shift; | ||
| 8 | my $call = shift; | ||
| 9 | |||
| 10 | my ($last_id) = $self->{dbh}->selectrow_array('select lastval()'); | ||
| 11 | return $last_id; | ||
| 12 | |||
| 13 | } | ||
| 14 | |||
| 15 | 1; |