replace ILIKE with the better-supported LOWER

This commit is contained in:
Shish
2019-12-15 16:09:48 +00:00
parent d7a2ca9ddc
commit 090ff65109
3 changed files with 4 additions and 8 deletions

View File

@@ -6,7 +6,6 @@ abstract class SCORE
const BOOL_Y = "SCORE_BOOL_Y";
const BOOL_N = "SCORE_BOOL_N";
const BOOL = "SCORE_BOOL";
const ILIKE = "SCORE_ILIKE";
}
abstract class DBEngine
@@ -54,7 +53,6 @@ class MySQL extends DBEngine
$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, "ENUM('Y', 'N')", $data);
$data = str_replace(SCORE::ILIKE, "LIKE", $data);
return $data;
}
@@ -99,7 +97,6 @@ class PostgreSQL extends DBEngine
$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::ILIKE, "ILIKE", $data);
return $data;
}
@@ -193,7 +190,6 @@ class SQLite extends DBEngine
$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, "CHAR(1)", $data);
$data = str_replace(SCORE::ILIKE, "LIKE", $data);
return $data;
}