Re: [fw-general] Zend_Db quoting issue

2010-04-21 Thread Ralph Schindler
$select-where('field2 = ?', 'foo', Zend_Db::PARAM_STR); This is not the type of values you are expected to provide here. $type, in this case, is expected to be one of these: Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, and Zend_Db::FLOAT_TYPE As mentioned here in the quote() documentation:

RE: [fw-general] Zend_Db quoting issue

2010-04-21 Thread Thomas D.
Hi, Ralph Schindler wrote: $select-where('field2 = ?', 'foo', Zend_Db::PARAM_STR); This is not the type of values you are expected to provide here. $type, in this case, is expected to be one of these: Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, and Zend_Db::FLOAT_TYPE As mentioned here

[fw-general] Zend_Db quoting issue

2010-04-20 Thread Thomas D.
Hi, I experienced a quoting issue within Zend_Db_Table when specifying the given value type: // Code: $db = Zend_Db::factory('Pdo_Mysql', array( 'host' = '...', 'username' = '...', 'password' = '...', 'dbname' = '...' )); Zend_Db_Table::setDefaultAdapter($db); unset($db); $table =