From: Brandon L. Black Date: Wed, 25 Jan 2006 01:32:14 +0000 (+0000) Subject: add parms to prepare_cached() in PK/Auto/DB2.pm so it does not re-use active statemen... X-Git-Tag: v0.05005~110 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=247f473ac4d1aa19d03e172cfcc85f910d7d1165;p=dbsrgits%2FDBIx-Class.git add parms to prepare_cached() in PK/Auto/DB2.pm so it does not re-use active statement handles --- diff --git a/lib/DBIx/Class/PK/Auto/DB2.pm b/lib/DBIx/Class/PK/Auto/DB2.pm index 0cfbcc1..f05f781 100644 --- a/lib/DBIx/Class/PK/Auto/DB2.pm +++ b/lib/DBIx/Class/PK/Auto/DB2.pm @@ -12,7 +12,7 @@ sub last_insert_id my ($self) = @_; my $dbh = $self->result_source->storage->dbh; - my $sth = $dbh->prepare_cached("VALUES(IDENTITY_VAL_LOCAL())"); + my $sth = $dbh->prepare_cached("VALUES(IDENTITY_VAL_LOCAL())", {}, 3); $sth->execute(); my @res = $sth->fetchrow_array();