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:
James Atkinson 2001-05-16 06:45:44 +00:00
parent 37c8601548
commit a0ee803f48

View file

@ -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':