postgres fix
This commit is contained in:
parent
abaf2a9283
commit
be6d48ac10
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user