[eluser]Nabeel[/eluser]
This was odd, the values were not encapsulated with single quotes; I don't know if this was as designed, but didn't make much sense to me. I changed it to do this, is the $escape parameter is false:
DB_active_req.php, in the function set($key, $value = '', $escape = TRUE), starting line 999.
Code:
foreach ($key as $k => $v)
{
if ($escape === FALSE)
{
$this->ar_set[$this->_protect_identifiers($k)] = $v;
}
else
{
$this->ar_set[$this->_protect_identifiers($k)] = '\''.$this->escape($v).'\'';
}
}
Adding single quotes around the escaped value.