Kaydet (Commit) 5e9f7f1e authored tarafından Mariusz Felisiak's avatar Mariusz Felisiak Kaydeden (comit) GitHub

Refs #20483 -- Removed unneeded column from _foreign_key_constraints() on Oracle.

üst 4ad2f862
......@@ -295,7 +295,7 @@ END;
if recursive:
cursor.execute("""
SELECT
user_tables.table_name, rcons.constraint_name, MAX(level)
user_tables.table_name, rcons.constraint_name
FROM
user_tables
JOIN
......@@ -314,16 +314,14 @@ END;
else:
cursor.execute("""
SELECT
cons.table_name, cons.constraint_name, 1
cons.table_name, cons.constraint_name
FROM
user_constraints cons
WHERE
cons.constraint_type = 'R'
AND cons.table_name = UPPER(%s)
""", (table_name,))
return [
(foreign_table, constraint) for foreign_table, constraint, _ in cursor.fetchall()
]
return cursor.fetchall()
def sql_flush(self, style, tables, sequences, allow_cascade=False):
if tables:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment