Bill et. al.,
Out of curiosity, if I am using Zend_Db(_Adapter_Abstract) to execute a
select object (query), should I be getting a Zend_Db_Exception or
derivative thereof when invalid sql is queried? Ie., i cannot catch the
following:
try {
$s = $database_connection->select();
$s->from('valid_table')
->where('not_valid_column = ?', 'value');
$database_connection->fetchAll($s);
} catch (Zend_Db_Exception $e) {
echo "<pre>";
print_r($e);
die();
}
Currently, I see the database connection is throwing a PDOException when
there is invalid sql.. like the above (not a valid column)
Is this the proper behavior?
Thanks,
Ralph