1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-22 19:07:27 +01:00

[ticket/12710] Correctly select index name and compare to column name

PHPBB3-12710
This commit is contained in:
Joas Schilling 2014-08-09 08:54:40 +02:00
parent 4e4ea681be
commit 12eb993d23

View File

@ -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;
}