mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
major speed boost for Oracle :D This took a while, every call to sql_query_limit() was checked out for having any implicit/explicit column issues... Hopefully, nothing has changed :D git-svn-id: file:///svn/phpbb/trunk@6631 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -131,7 +131,7 @@ function compose_pm($id, $mode, $action)
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = 'SELECT t.*, p.*, u.username as quote_username
|
||||
$sql = 'SELECT t.folder_id, p.*, u.username as quote_username
|
||||
FROM ' . PRIVMSGS_TO_TABLE . ' t, ' . PRIVMSGS_TABLE . ' p, ' . USERS_TABLE . ' u
|
||||
WHERE t.user_id = ' . $user->data['user_id'] . "
|
||||
AND p.author_id = u.user_id
|
||||
@@ -147,7 +147,7 @@ function compose_pm($id, $mode, $action)
|
||||
}
|
||||
|
||||
// check for outbox (not read) status, we do not allow editing if one user already having the message
|
||||
$sql = 'SELECT p.*, t.*
|
||||
$sql = 'SELECT p.*, t.folder_id
|
||||
FROM ' . PRIVMSGS_TO_TABLE . ' t, ' . PRIVMSGS_TABLE . ' p
|
||||
WHERE t.user_id = ' . $user->data['user_id'] . '
|
||||
AND t.folder_id = ' . PRIVMSGS_OUTBOX . "
|
||||
|
@@ -519,7 +519,7 @@ function get_pm_from($folder_id, $folder, $user_id)
|
||||
$sql_start = $start;
|
||||
}
|
||||
|
||||
$sql = 'SELECT t.*, p.author_id, p.root_level, p.message_time, p.message_subject, p.icon_id, p.to_address, p.message_attachment, p.bcc_address, u.username, u.user_colour
|
||||
$sql = 'SELECT t.*, p.root_level, p.message_time, p.message_subject, p.icon_id, p.to_address, p.message_attachment, p.bcc_address, u.username, u.user_colour
|
||||
FROM ' . PRIVMSGS_TO_TABLE . ' t, ' . PRIVMSGS_TABLE . ' p, ' . USERS_TABLE . " u
|
||||
WHERE t.user_id = $user_id
|
||||
AND p.author_id = u.user_id
|
||||
|
Reference in New Issue
Block a user