pg
This commit is contained in:
parent
f3cb70a06d
commit
8bc7d5d445
1 changed files with 4 additions and 4 deletions
|
@ -77,8 +77,8 @@ class PostgreSQL extends DBEngine
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $name = DatabaseDriver::PGSQL;
|
public $name = DatabaseDriver::PGSQL;
|
||||||
|
|
||||||
public $BOOL_Y = 'true';
|
public $BOOL_Y = true;
|
||||||
public $BOOL_N = 'false';
|
public $BOOL_N = false;
|
||||||
|
|
||||||
public function init(PDO $db)
|
public function init(PDO $db)
|
||||||
{
|
{
|
||||||
|
@ -94,8 +94,8 @@ class PostgreSQL extends DBEngine
|
||||||
{
|
{
|
||||||
$data = str_replace(SCORE::AIPK, "INTEGER NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY", $data);
|
$data = str_replace(SCORE::AIPK, "INTEGER NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY", $data);
|
||||||
$data = str_replace(SCORE::INET, "INET", $data);
|
$data = str_replace(SCORE::INET, "INET", $data);
|
||||||
$data = str_replace(SCORE::BOOL_Y, $this->BOOL_Y, $data);
|
$data = str_replace(SCORE::BOOL_Y, "true", $data);
|
||||||
$data = str_replace(SCORE::BOOL_N, $this->BOOL_N, $data);
|
$data = str_replace(SCORE::BOOL_N, "false", $data);
|
||||||
$data = str_replace(SCORE::BOOL, "BOOL", $data);
|
$data = str_replace(SCORE::BOOL, "BOOL", $data);
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue