Commit 7a289ac5 by Alex

Fix for Postgresql PDO::FETCH_ASSOC

parent 1bd93c33
...@@ -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