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];