aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/tools.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-08-09 08:54:40 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-08-09 08:54:40 +0200
commit12eb993d230e0be0d0c1c70e5ebe6379bacecc0d (patch)
tree04091681e58c84532ec96ec3ecba049c0d9a10ff /phpBB/phpbb/db/tools.php
parent4e4ea681be7939ba70db492331164ed024adae8e (diff)
downloadforums-12eb993d230e0be0d0c1c70e5ebe6379bacecc0d.tar
forums-12eb993d230e0be0d0c1c70e5ebe6379bacecc0d.tar.gz
forums-12eb993d230e0be0d0c1c70e5ebe6379bacecc0d.tar.bz2
forums-12eb993d230e0be0d0c1c70e5ebe6379bacecc0d.tar.xz
forums-12eb993d230e0be0d0c1c70e5ebe6379bacecc0d.zip
[ticket/12710] Correctly select index name and compare to column name
PHPBB3-12710
Diffstat (limited to 'phpBB/phpbb/db/tools.php')
-rw-r--r--phpBB/phpbb/db/tools.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php
index 38655018e1..05bba0ba84 100644
--- a/phpBB/phpbb/db/tools.php
+++ b/phpBB/phpbb/db/tools.php
@@ -2649,11 +2649,11 @@ class tools
break;
case 'oracle':
- $sql = "SELECT ixc.column_name AS phpbb_index_name
+ $sql = "SELECT ix.index_name AS phpbb_index_name
FROM all_ind_columns ixc, all_indexes ix
WHERE ix.index_name = ixc.index_name
AND ixc.table_name = UPPER('{$table_name}')
- AND ixc.index_name = UPPER('{$column_name}')
+ AND ixc.column_name = UPPER('{$column_name}')
AND ix.uniqueness = " . ($unique) ? "'UNIQUE'" : "'NONUNIQUE'";
break;
}