[Vtigercrm-developers] Catch $adb->pquery error?
Joe Bordes
joe at tsolucio.com
Sat Sep 7 14:06:18 UTC 2013
Have you tried something like:
$recordSet = $adb->query($sql);
if (!$recordSet)
print $adb->ErrorMsg();
else
....
http://phplens.com/lens/adodb/docs-adodb.htm
El 07/09/13 13:20, Alan Lord (News) escribió:
> Hi probably a daft question but I couldn't find any examples in the
> code (or perhaps I wasn't looking properly)...
>
> I've an Event Handler function that creates and adds a UUID to a vtlib
> module entity table. I've set a UNIQUE constraint on the column as it
> is essential all the UUIDs are unique.
>
> I know it's quite unlikely, but I want to check the result of the
> $adb->pquery Update table query to see if the query failed because it
> wasn't unique and repeat until it works...
>
> Anyone got an example of how to check if the $result is an error object?
>
> Cheers
>
> Al
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130907/95fa2ac1/attachment.html>
More information about the vtigercrm-developers
mailing list