Merge pull request #1803 from alexgalletti/master

Fix for Postgresql PDO::FETCH_ASSOC
This commit is contained in:
Taylor Otwell 2013-03-21 21:17:22 -07:00
commit 2d863c45fc
1 changed files with 3 additions and 1 deletions

View File

@ -829,7 +829,9 @@ public function insert_get_id($values, $column = 'id')
}
else if ($this->grammar instanceof Postgres)
{
return (int) $result[0]->$column;
$row = (array) $result[0];
return (int) $row[$column];
}
else
{