1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 07:47:34 +02:00

Re-added str_replace for LOWER -> LCASE in queries

git-svn-id: file:///svn/phpbb/trunk@1942 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2002-01-25 01:59:34 +00:00
parent cc8be01b33
commit 2ebc299d35

View File

@@ -103,6 +103,8 @@ class sql_db
$this->in_transaction = TRUE; $this->in_transaction = TRUE;
} }
$query = str_replace("LOWER(", "LCASE(", $query);
if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) ) if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) )
{ {
$query = $limits[1]; $query = $limits[1];