From cea6e2b1218e11230b86b705717c6408b46d2d29 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 30 Sep 2019 18:05:31 +0100 Subject: [PATCH] postgres has true / false --- core/dbengine.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/dbengine.php b/core/dbengine.php index 7c5112c0..03b4b851 100644 --- a/core/dbengine.php +++ b/core/dbengine.php @@ -77,8 +77,8 @@ class PostgreSQL extends DBEngine /** @var string */ public $name = DatabaseDriver::PGSQL; - public $BOOL_Y = 't'; - public $BOOL_N = 'f'; + public $BOOL_Y = 'true'; + public $BOOL_N = 'false'; public function init(PDO $db) { @@ -94,8 +94,8 @@ class PostgreSQL extends DBEngine { $data = str_replace(SCORE::AIPK, "SERIAL PRIMARY KEY", $data); $data = str_replace(SCORE::INET, "INET", $data); - $data = str_replace(SCORE::BOOL_Y, "'$this->BOOL_Y'", $data); - $data = str_replace(SCORE::BOOL_N, "'$this->BOOL_N'", $data); + $data = str_replace(SCORE::BOOL_Y, $this->BOOL_Y, $data); + $data = str_replace(SCORE::BOOL_N, $this->BOOL_N, $data); $data = str_replace(SCORE::BOOL, "BOOL", $data); $data = str_replace(SCORE::DATETIME, "TIMESTAMP", $data); $data = str_replace(SCORE::NOW, "current_timestamp", $data);