[Melbourne-pm] DBI don't start transaction

Scott Penrose scottp at dd.com.au
Mon Jun 8 23:18:39 PDT 2009


----- "Toby Corkindale" <toby.corkindale at strategicdata.com.au> wrote: 
> Would this help?
> {
>      local $dbh->{AutoCommit} = 1;
>      $dbh->do('ATTACH DATABASE xxx.db');
> }

Thanks Toby, that has worked perfectly. I don't trust it to be portable or future proof, as you can never tell how the DBD implements when that variable is read, but it works now and I have made sure I put tests in to pick up any issue in the future.

Ta

Scott
-- 
http://scott.dd.com.au/
scottp at dd.com.au




More information about the Melbourne-pm mailing list