Welcome Guest, Not a member yet? Register   Sign In
not catching DB errors while using PDO as driver

I came across an issue where CI isn't reporting errors with incorrect update statements. I can write a query which clearly violates duplicate keys or has incorrect column names, yet CI gives no error whatsoever with

echo $this->db->_error_message(); //returns nothing
echo $this->db->_error_number();  //returns '0000'

However as soon as I change over to using mysql as the driver, I receive error messages.

I've even tried
$this->db->query(.... //violating statement
to bypass active record, and no luck with errors.

Is this a problem with PDO? Or are there additional config settings to change when using PDO?

Theme © iAndrew 2016 - Forum software by © MyBB