[Bast-commits] r8911 -
DBIx-Class/0.08/branches/storage-interbase/lib/DBIx/Class/Storage
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sat Mar 6 17:12:55 GMT 2010
Author: caelum
Date: 2010-03-06 17:12:55 +0000 (Sat, 06 Mar 2010)
New Revision: 8911
Modified:
DBIx-Class/0.08/branches/storage-interbase/lib/DBIx/Class/Storage/DBI.pm
Log:
cache autoinc sequence in column_info
Modified: DBIx-Class/0.08/branches/storage-interbase/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- DBIx-Class/0.08/branches/storage-interbase/lib/DBIx/Class/Storage/DBI.pm 2010-03-06 17:07:56 UTC (rev 8910)
+++ DBIx-Class/0.08/branches/storage-interbase/lib/DBIx/Class/Storage/DBI.pm 2010-03-06 17:12:55 UTC (rev 8911)
@@ -1378,7 +1378,7 @@
if ( $col_info->{auto_nextval} ) {
$updated_cols->{$col} = $to_insert->{$col} = $self->_sequence_fetch(
'nextval',
- $col_info->{sequence} ||
+ $col_info->{sequence} ||=
$self->_dbh_get_autoinc_seq($self->_get_dbh, $source, $col)
);
}
More information about the Bast-commits
mailing list