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

Re: Knowing if an Operation is Successful in MySql

by ehdonhon (Curate)
on Nov 14, 2003 at 12:59 UTC ( #307034=note: print w/replies, xml ) Need Help??

in reply to Knowing if an Operation is Successful in MySql

This will tell you if your command ran successfully.

if ( $dbh->do( $command ) ) { &success; } else { &failure; }

This will tell you if you actually inserted anything:

if ( 0 + $dbh->do( $command ) ) { &success; } else { &failure; }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://307034]
[pryrt]: stevieb: going thru cblast to get caught up, I see that strawberry fixed their download hashes. Fast turnaround on that fix. :-)
[pryrt]: Are you going to tie the berrybrew expected hashes to their releases.json to keep it always up-to-date?

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-03-30 13:10 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (357 votes). Check out past polls.