Zend, Mac and MySQL issues with inserting NULL for dates -
i'm using zend framework 1 on mac (running os x mavericks). version of mysql 5.6.11. i'm trying insert new zend_db_expr('null')
database. error "incorrect date value" though have database set allow null field. default null. i've tried new zend_db_expr(null)
, doesn't work, either.
i feel need set in sql_mode in mysql allow null dates, don't know what. on our server, code (the first version) works, specific mac.
thoughts?
i not use zend_db_expr. here method, if can you:
$date = null; $data = array('key1' => $val1, ... 'date' => $date, ... 'keyx' => $valx ); $this->getdbtable()->update($data, 'id = ' . (int) $user->getid());
Comments
Post a Comment