From 19c0868b2c642277208e5c9857ca4c8a444735d2 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 13 Jun 2013 10:34:47 +0100 Subject: [PATCH] sqlite got case sensitive by default at some point - lowercase strings for comparing them --- core/database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database.class.php b/core/database.class.php index f38af98a..1e8da970 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -145,7 +145,7 @@ class SQLite extends DBEngine { $data = str_replace("SCORE_BOOL_N", "'N'", $data); $data = str_replace("SCORE_BOOL", "CHAR(1)", $data); $data = str_replace("SCORE_NOW", "\"1970-01-01\"", $data); - $data = str_replace("SCORE_STRNORM", "", $data); + $data = str_replace("SCORE_STRNORM", "lower", $data); $data = str_replace("SCORE_ILIKE", "LIKE", $data); return $data; }