Hi,
I think you have to use $db->quote('default') or $db->quoteInto.
Greets
>
>
>
> Hi,
>
> How do I quote reserved keywords ?
> I tried the following :
>
> $data = array( '`default`' => 0 );
> $where = array('`default` = ?' => 1);
> $db->update('my_table', $data, $where);
>
> But it doesn't seem to work :
> Column not found: 1054 Unknown column '`default`' in 'field list
>
> Thank you for any help !
>
> ______________________________________
> View message @
> http://zend-framework-community.634137.n4.nabble.com/Quote-reserved-keywords-tp2525558p2525558.html
>
> To unsubscribe from Zend Framework Community, click
> http://zend-framework-community.634137.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=634137&code=c2lsdmVyc3BhY2VyQHdlYi5kZXw2MzQxMzd8LTE2OTQ2ODE3MzQ=
>
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Quote-reserved-keywords-tp2525558p2525578.html
Sent from the Zend Framework mailing list archive at Nabble.com.