mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
Removed the Oracle specific SQL statment, the non-mysql one works fine with it
git-svn-id: file:///svn/phpbb/trunk@303 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -60,15 +60,6 @@ if(isset($HTTP_GET_VARS['view']))
|
||||
switch($dbms)
|
||||
{
|
||||
case 'oracle':
|
||||
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies,
|
||||
f.forum_type, f.forum_name, f.forum_id, u.username, u.user_id
|
||||
FROM ".TOPICS_TABLE." t, ".FORUMS_TABLE." f, ".FORUM_MODS_TABLE." fm, ".USERS_TABLE." u
|
||||
WHERE t.topic_id =
|
||||
(select topic_id from ".TOPICS_TABLE." WHERE topic_time ".$operator." (select topic_time from ".TOPICS_TABLE." where topic_id = $topic_id) AND ROWNUM < 2 ORDER BY topic_time DESC)
|
||||
AND f.forum_id = t.forum_id
|
||||
AND fm.forum_id = t.forum_id
|
||||
AND u.user_id = fm.user_id";
|
||||
break;
|
||||
case 'mssql':
|
||||
case 'odbc':
|
||||
case 'postgres':
|
||||
|
Reference in New Issue
Block a user