EllisLab/CodeIgniter — pull request #2659 by waitingsong (2013-09-24 08:18:44+00:00)
Title: Feature postgres compatible for develop branch

changes for compatible to Postgresql.
main change is support postgres SQL statement end with 'RERURNING' instead of insert_id();
usage:
db->query("INSER INTO tbl VALUSE (...) RERURNING id");
// OR $stmt = $this->db->insert_returning($tbl, $data, 'id');
if ($stmt->num_rows())
{
$newid = (int) $stmt->row()->project_id;
}
else
{
$newid = FALSE;
}
?>