mysql_driver->escape_str($str)
On my system this function pukes with a warning that mysql_real_escape_str was expecting a resource identifier but received a boolean when $str is ‘’.
I assume this is a PHP bug rather than a CI bug. But perhaps this could be smoothed by checking for an empty string in which case escaping would not be required. I’m running 5.1.6 on OSX Tiger.
Just letting you know ...
