postgres fix
This commit is contained in:
parent
abaf2a9283
commit
be6d48ac10
@ -68,7 +68,7 @@ class PostgreSQL extends SQL {
|
|||||||
if(is_null($this->connection))
|
if(is_null($this->connection))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pg_close($this->connection);
|
@pg_close($this->connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getLastError() {
|
public function getLastError() {
|
||||||
@ -99,6 +99,9 @@ class PostgreSQL extends SQL {
|
|||||||
case Parameter::TYPE_DATE_TIME:
|
case Parameter::TYPE_DATE_TIME:
|
||||||
$value = $value->format("Y-m-d H:i:s");
|
$value = $value->format("Y-m-d H:i:s");
|
||||||
break;
|
break;
|
||||||
|
case Parameter::TYPE_ARRAY:
|
||||||
|
$value = json_encode($value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user