vendion has asked for the wisdom of the Perl Monks concerning the following question:
I am having some problems with getting a mysql update statement with DBD::mysql. My SQL statemen is as follows:
eval { $dbh->do("UPDATE computer SET didDiagnostic = 1 WHERE CustId += *000-000002*") }; print "Update failed: $@\n" if $@;
From what I can tell the if $@ statement is not being exectued so I don't think it is failing but the entry in the database is never updated. I know my SQL syntax is correct becuase I can copy and paste it into mysql console prompt and it work. I can provide more information as needed, a code sniplet or a mysql dump.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with update statement with DBD::mysql
by aquarium (Curate) on Nov 09, 2010 at 03:25 UTC | |
|
Re: Problem with update statement with DBD::mysql
by mjscott2702 (Pilgrim) on Nov 09, 2010 at 08:23 UTC | |
|
Re: Problem with update statement with DBD::mysql
by locked_user sundialsvc4 (Abbot) on Nov 09, 2010 at 13:33 UTC | |
|
Re: Problem with update statement with DBD::mysql
by mertserger (Curate) on Nov 09, 2010 at 10:20 UTC | |
by mjscott2702 (Pilgrim) on Nov 09, 2010 at 10:22 UTC |