mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
Fix sql_column_exists for oracle (oracle uses uppercase table names)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9583 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2d30e88089
commit
d843dbd046
@ -801,7 +801,7 @@ class phpbb_db_tools
|
||||
case 'oracle':
|
||||
$sql = "SELECT column_name
|
||||
FROM user_tab_columns
|
||||
WHERE table_name = '{$table}'";
|
||||
WHERE LOWER(table_name) = '" . strtolower($table) . "'";
|
||||
$result = $this->db->sql_query($sql);
|
||||
while ($row = $this->db->sql_fetchrow($result))
|
||||
{
|
||||
|
@ -912,7 +912,6 @@ function change_database_data(&$no_updates, $version)
|
||||
set_config('captcha_gd_wave', 0);
|
||||
set_config('captcha_gd_3d_noise', 1);
|
||||
set_config('captcha_gd_fonts', 1);
|
||||
|
||||
set_config('confirm_refresh', 1);
|
||||
|
||||
// Maximum number of keywords
|
||||
@ -949,6 +948,7 @@ function change_database_data(&$no_updates, $version)
|
||||
WHERE bot_agent = 'ichiro/2'";
|
||||
_sql($sql, $errored, $error_ary);
|
||||
|
||||
|
||||
// Before we are able to add a unique key to auth_option, we need to remove duplicate entries
|
||||
|
||||
// We get duplicate entries first
|
||||
@ -1637,7 +1637,7 @@ class updater_db_tools
|
||||
case 'oracle':
|
||||
$sql = "SELECT column_name
|
||||
FROM user_tab_columns
|
||||
WHERE table_name = '{$table}'";
|
||||
WHERE LOWER(table_name) = '" . strtolower($table) . "'";
|
||||
$result = $this->db->sql_query($sql);
|
||||
while ($row = $this->db->sql_fetchrow($result))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user