mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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:
parent
cc8be01b33
commit
2ebc299d35
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Reference in a new issue