diff --git a/core/Driver/SQL/PostgreSQL.class.php b/core/Driver/SQL/PostgreSQL.class.php index 6836842..e3e8794 100644 --- a/core/Driver/SQL/PostgreSQL.class.php +++ b/core/Driver/SQL/PostgreSQL.class.php @@ -68,7 +68,7 @@ class PostgreSQL extends SQL { if(is_null($this->connection)) return; - pg_close($this->connection); + @pg_close($this->connection); } public function getLastError() { @@ -99,6 +99,9 @@ class PostgreSQL extends SQL { case Parameter::TYPE_DATE_TIME: $value = $value->format("Y-m-d H:i:s"); break; + case Parameter::TYPE_ARRAY: + $value = json_encode($value); + break; default: break; }