Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: How to remove the warning: "there is already a transaction in progress" when using lock table

by cavac (Priest)
on Apr 14, 2016 at 06:11 UTC ( #1160375=note: print w/replies, xml ) Need Help??


in reply to Re: How to remove the warning: "there is already a transaction in progress" when using lock table
in thread How to remove the warning: "there is already a transaction in progress" when using lock table

Correct. With AutoCommit off, DBI/DBD::Pg automatically sends START TRANSACTION (or the identical BEGIN) when you do() or execute().

If you want explicit control over this, settings AutoCommit to true should work.

See http://search.cpan.org/~timb/DBI-1.634/DBI.pm#AutoCommit and http://search.cpan.org/~turnstep/DBD-Pg-3.5.3/Pg.pm#AutoCommit_(boolean).

"For me, programming in Perl is like my cooking. The result may not always taste nice, but it's quick, painless and it get's food on the table."
  • Comment on Re^2: How to remove the warning: "there is already a transaction in progress" when using lock table

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1160375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2022-12-07 17:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?