PostgreSQL INSERT+CREATE TABLE

This commit is contained in:
2020-04-02 01:48:46 +02:00
parent 81995b06b8
commit c4e9f0fffb
11 changed files with 483 additions and 155 deletions

View File

@@ -22,11 +22,8 @@ class ConnectionData {
return $this->properties;
}
public function getProperty($key) {
if(isset($this->properties[$key]))
return $this->properties[$key];
else
return '';
public function getProperty($key, $defaultValue='') {
return $this->properties[$key] ?? $defaultValue;
}
public function setProperty($key, $val) {

View File

@@ -101,6 +101,7 @@ class Session extends ApiObject {
$this->browser,
json_encode($_SESSION),
$stayLoggedIn)
->returning("uid")
->execute();
if($success) {