Commit 2d863c45 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1803 from alexgalletti/master

Fix for Postgresql PDO::FETCH_ASSOC
parents 1bd93c33 7a289ac5
...@@ -829,7 +829,9 @@ class Query { ...@@ -829,7 +829,9 @@ class Query {
} }
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
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment