my $self = shift;
# return the user-defined sequence if known
- return $self->sequence if ($self->sequence);
+ if ($self->sequence) {
+ return $self->{_autoinc_seq} = $self->sequence;
+ }
# look up the correct sequence automatically
my $dbh = $self->storage->dbh;
my $self=shift;
# return the user-defined sequence if known
- return $self->sequence if ($self->sequence);
+ if ($self->sequence) {
+ return $self->{_autoinc_seq} = $self->sequence;
+ }
my $dbh= $self->storage->dbh;
my $sth = $dbh->column_info( undef, undef, $self->_table_name, '%');