Re: [fw-general] catch sql statement execute error

2007-12-17 Thread ctx2002
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

Re: [fw-general] catch sql statement execute error

2007-12-17 Thread Matthew Weier O'Phinney
-- Kexiao Liao <[EMAIL PROTECTED]> wrote (on Monday, 17 December 2007, 07:23 AM -0800): > > 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 duri

[fw-general] catch sql statement execute error

2007-12-17 Thread Kexiao Liao
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 . "' WHE