1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 16:27:38 +02:00

- Firebird is people too

git-svn-id: file:///svn/phpbb/trunk@5907 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2006-05-13 02:14:59 +00:00
parent d5fc1c29f2
commit fd609f28ba
4 changed files with 42 additions and 20 deletions

View File

@@ -919,14 +919,20 @@ class parse_message extends bbcode_firstpass
$sql = 'SELECT *
FROM ' . SMILIES_TABLE . '
ORDER BY LEN(code) DESC';
break;
break;
case 'firebird':
$sql = 'SELECT *
FROM ' . SMILIES_TABLE . '
ORDER BY STRLEN(code) DESC';
break;
// LENGTH supported by MySQL, IBM DB2, Oracle and Access for sure...
default:
$sql = 'SELECT *
FROM ' . SMILIES_TABLE . '
ORDER BY LENGTH(code) DESC';
break;
break;
}
$result = $db->sql_query($sql, 600);