File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1443,6 +1443,12 @@ def get_multi_foreign_keys(
14431443 key_constraints .c .table_name .in_ (all_objects ),
14441444 )
14451445 )
1446+ .group_by (
1447+ key_constraints .c .table_name ,
1448+ key_constraints .c .constraint_name ,
1449+ key_constraints .c .column_name ,
1450+ key_constraints_ref .c .table_schema
1451+ )
14461452 .order_by (
14471453 key_constraints .c .constraint_name ,
14481454 key_constraints .c .ordinal_position ,
@@ -1606,10 +1612,12 @@ def get_multi_columns(
16061612 ):
16071613 if charlen == - 1 :
16081614 charlen = None
1609- try :
1610- kwargs ["length" ] = int (charlen )
1611- except ValueError :
16121615 kwargs ["length" ] = 0
1616+ else :
1617+ try :
1618+ kwargs ["length" ] = int (charlen )
1619+ except ValueError :
1620+ kwargs ["length" ] = 0
16131621 if collation :
16141622 kwargs ["collation" ] = collation
16151623 if coltype is None :
You can’t perform that action at this time.
0 commit comments