Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: SQLite handling of errors through common function

by sundialsvc4 (Abbot)
on Nov 06, 2013 at 19:02 UTC ( [id://1061463]=note: print w/replies, xml ) Need Help??


in reply to Re^2: SQLite handling of errors through common function
in thread SQLite handling of errors through common function

So sue me for overlooking that.   O_o ...   (Not that I give a damn about “XP” anyway, but let’s just stay on-topic here.)   Your eagle-eyed observation does raise a different point:   my understanding is that the presence of this option will prevent the execution of the existing handler-routine in the OP’s example, because (IIRC) it will throw an exception in case of any error.   The DBI-call won’t return a non-zero value ... it won’t return anything at all.   Instead, the code will die, and I see no error-handling logic (not even a basic eval{}) in it.   Which would definitely be a bug of a different sort.

  • Comment on Re^3: SQLite handling of errors through common function

Replies are listed 'Best First'.
Re^4: SQLite handling of errors through common function
by Anonymous Monk on Nov 06, 2013 at 20:23 UTC

    So sue me for overlooking that.

    There is no suing on perlmonks; daxim already downvoted

Re^4: SQLite handling of errors through common function
by mje (Curate) on Nov 07, 2013 at 11:01 UTC

    My understanding is the HandleError routine is called before DBI dies and the handler can actually alter what DBI does.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found