php - How to Set a Value to NULL when using Zend_Db -


While updating using Zend_Db and displaying the INSERT query, I often set the value equal to NULL (not '') Need to do However, the default behavior of Zend_Db :: insert () and Zend_Db :: update () seems that the empty values ​​are translated into empty strings ('') and put into the database.

Itemprop = "text">

Try setting the affected areas to: New Zend_Db_Expr ('NULL')


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -