From be6d48ac10193efaff2c5ae54a8231ca98311215 Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Sat, 27 Jun 2020 01:37:20 +0200 Subject: [PATCH] postgres fix --- core/Driver/SQL/PostgreSQL.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }