Fix for Postgresql PDO::FETCH_ASSOC

This commit is contained in:
Alex
2013-03-21 23:13:51 -05:00
parent 1bd93c3327
commit 7a289ac50a

View File

@@ -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
{ {