add parms to prepare_cached() in PK/Auto/DB2.pm so it does not re-use active statemen...
Brandon L. Black [Wed, 25 Jan 2006 01:32:14 +0000 (01:32 +0000)]
lib/DBIx/Class/PK/Auto/DB2.pm

index 0cfbcc1..f05f781 100644 (file)
@@ -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();