forked from Cavemanon/cavepaintings
replace ILIKE with the better-supported LOWER
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user