mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
Workaround for LOWER -> LCASE for msaccess
git-svn-id: file:///svn/phpbb/trunk@283 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
557887b0d1
commit
12d405c8a3
1 changed files with 5 additions and 0 deletions
|
@ -126,6 +126,11 @@ class sql_db
|
||||||
unset($this->row);
|
unset($this->row);
|
||||||
if($query != "")
|
if($query != "")
|
||||||
{
|
{
|
||||||
|
if($this->db_type == "msaccess")
|
||||||
|
{
|
||||||
|
echo $query = preg_replace("/LOWER\(/", "LCASE(", $query);
|
||||||
|
}
|
||||||
|
|
||||||
if(!eregi("^INSERT ",$query))
|
if(!eregi("^INSERT ",$query))
|
||||||
{
|
{
|
||||||
if(eregi("LIMIT", $query))
|
if(eregi("LIMIT", $query))
|
||||||
|
|
Loading…
Add table
Reference in a new issue