Merge pull request #1803 from alexgalletti/master
Fix for Postgresql PDO::FETCH_ASSOC
This commit is contained in:
commit
2d863c45fc
|
@ -829,7 +829,9 @@ public function insert_get_id($values, $column = 'id')
|
||||||
}
|
}
|
||||||
else if ($this->grammar instanceof Postgres)
|
else if ($this->grammar instanceof Postgres)
|
||||||
{
|
{
|
||||||
return (int) $result[0]->$column;
|
$row = (array) $result[0];
|
||||||
|
|
||||||
|
return (int) $row[$column];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue