Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Knowing if an Operation is Successful in MySql

by Taulmarill (Deacon)
on Nov 14, 2003 at 12:50 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found