Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /adminer/drivers/oracle.inc.php [c8248b] .. [5f3709] Maximize Restore

  Switch to unified view

a/adminer/drivers/oracle.inc.php b/adminer/drivers/oracle.inc.php
...
...
243
        foreach (get_rows("SELECT uic.*, uc.constraint_type
243
        foreach (get_rows("SELECT uic.*, uc.constraint_type
244
FROM user_ind_columns uic
244
FROM user_ind_columns uic
245
LEFT JOIN user_constraints uc ON uic.index_name = uc.constraint_name AND uic.table_name = uc.table_name
245
LEFT JOIN user_constraints uc ON uic.index_name = uc.constraint_name AND uic.table_name = uc.table_name
246
WHERE uic.table_name = " . q($table) . "
246
WHERE uic.table_name = " . q($table) . "
247
ORDER BY uc.constraint_type, uic.column_position", $connection2) as $row) {
247
ORDER BY uc.constraint_type, uic.column_position", $connection2) as $row) {
248
          $index_name = $row["INDEX_NAME"];
248
            $return[$row["INDEX_NAME"]]["type"] = ($row["CONSTRAINT_TYPE"] == "P" ? "PRIMARY" : ($row["CONSTRAINT_TYPE"] == "U" ? "UNIQUE" : "INDEX"));
249
            $return[$index_name]["type"] = ($row["CONSTRAINT_TYPE"] == "P" ? "PRIMARY" : ($row["CONSTRAINT_TYPE"] == "U" ? "UNIQUE" : "INDEX"));
249
            $return[$row["INDEX_NAME"]]["columns"][] = $row["COLUMN_NAME"];
250
            $return[$index_name]["columns"][] = $row["COLUMN_NAME"];
250
            $return[$row["INDEX_NAME"]]["lengths"][] = ($row["CHAR_LENGTH"] && $row["CHAR_LENGTH"] != $row["COLUMN_LENGTH"] ? $row["CHAR_LENGTH"] : null);
251
            $return[$index_name]["lengths"][] = ($row["CHAR_LENGTH"] && $row["CHAR_LENGTH"] != $row["COLUMN_LENGTH"] ? $row["CHAR_LENGTH"] : null);
252
          $return[$index_name]["descs"][] = ($row["DESCEND"] ? '1' : null);
251
        }
253
        }
252
        return $return;
254
        return $return;
253
    }
255
    }
254
256
255
    function view($name) {
257
    function view($name) {