do not know how to do inside zf or drupal, but can you set up error log for
you DB?
most DBs have error log option, check out your DB manual.
regards.
Kexiao Liao wrote:
>
> Is there a good way to catch the sql statement execute error message when
> it is been fired?
>
> For example when I run the following two statements, how can I catch the
> error message if it happens during the running process?
>
> $stmtNode = $dbDrupal-> query("UPDATE node set title='" . $newName . "'
> WHERE nid='" . $forum . "'");
> $stmtNode->execute();
>
--
View this message in context:
http://www.nabble.com/catch-sql-statement-execute-error-tp14372542s16154p14375848.html
Sent from the Zend Framework mailing list archive at Nabble.com.