Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Knowing if an Operation is Successful in MySql

by Taulmarill (Deacon)
on Nov 14, 2003 at 12:50 UTC ( #307032=note: print w/replies, xml ) Need Help??

in reply to Knowing if an Operation is Successful in MySql

as taken from DBI module description:

$str = $h->state;
Returns an error code in the standard SQLSTATE five character format. Note that the specific success code 00000 is translated to '' (false). If the driver does not support SQLSTATE (and most don't), then state will return S1000 (General Error) for all errors.

you could also try $h->err; or $h->errstr;. just see the DBI documentation for more information.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2023-12-07 23:56 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (33 votes). Check out past polls.