Escape identifiers not working after taking update. It seems bug in core code of db active record class.
Yes, Maneesh is right. I can confirm it.
If we do something like
$this->db->select('DATE_ADD(start_time, INTERVAL 0 MINUTE)', FALSE);
It produces a query in which the above is replaced with.
"DATE_ADD(start_time, INTERVAL 0 MINUTE)"
Putting back-ticks around INTERVAL keyword.
As far as we have debugged it, we have found that. Earlier we used to escape per query, but now we are trying to escape column by column. Moreover, the select() method in CI_DB_active_record explodes the given arguments by "," and converts the above string into two different columns, that itself is not acceptable.