However, it is not working either. This is my code snippet:
Zend_Debug::dump(parent::update($data, $where));
The update() part gives an "Uncaught exception error" so I think the
Zend_Debug call is never made. So I need a way to catch the query without
executing the update() function.
jjsanders wrote:
>
> I think you can do this using Zend_debug(var, label, echo)
>
> On Thu, Oct 23, 2008 at 9:59 AM, etopian <marco@etopia.nl> wrote:
>
>>
>> Hi,
>>
>> Maybe I'm approaching this wrongly, but I'm using Zend_Db_Table update()
>> to
>> update a record in a db. However, I get am SQL error when executing. So I
>> would like to display the actual SQL before it is executed, so I can see
>> what is not in the query when executed.
>>
>> Is there a function to do this?
>> --
>> View this message in context:
>> http://www.nabble.com/How-can-I-display-the-query-when-using-Zend_Db_Table-update%28%29-tp20126169p20126169.html
>> Sent from the Zend DB mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Met vriendelijke groet,
>
> Jigal Sanders
> A.J. Ernststraat 739
> 1082 LK Amsterdam
> Mobiel: 06-42111489
>
>
--
View this message in context: http://www.nabble.com/How-can-I-display-the-query-when-using-Zend_Db_Table-update%28%29-tp20126169p20126527.html
Sent from the Zend DB mailing list archive at Nabble.com.
没有评论:
发表评论