Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Mystified by why my UPDATE statement is not reflected in my database display

by nikosv (Chaplain)
on Jul 05, 2013 at 20:32 UTC ( #1042793=note: print w/ replies, xml ) Need Help??


in reply to Mystified by why my UPDATE statement is not reflected in my database display

I haven't checked your code but 'execute' will always return a true value if it run successfully regardless if it actually updated,in this case, or not.

Most drivers will return '0E0' , and mysql's in particular, when the statement runs without errors but has updated 0 rows

so it's best to use :
if ($rv eq '0E0')
  • Comment on Re: Mystified by why my UPDATE statement is not reflected in my database display
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2016-06-26 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.