Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Does each DBI 'do' start a new transaction?

by ikegami (Patriarch)
on Mar 19, 2024 at 19:36 UTC ( [id://11158401]=note: print w/replies, xml ) Need Help??


in reply to Re: Does each DBI 'do' start a new transaction?
in thread Does each DBI 'do' start a new transaction?

They're using an error handler ($dbh->{HandleError}=\&handle_error;)

Replies are listed 'Best First'.
Re^3: Does each DBI 'do' start a new transaction?
by talexb (Chancellor) on Mar 20, 2024 at 13:26 UTC

    I missed that. :( Now, what happens when there's a DBI error inside the error handler? Does it call itself until it hits the 'deep recursion' error? That would be a good place to locally delete the error handler and do something different with that error.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-09-11 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (13 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.