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(
1443
1443
key_constraints .c .table_name .in_ (all_objects ),
1444
1444
)
1445
1445
)
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
+ )
1446
1452
.order_by (
1447
1453
key_constraints .c .constraint_name ,
1448
1454
key_constraints .c .ordinal_position ,
@@ -1606,10 +1612,12 @@ def get_multi_columns(
1606
1612
):
1607
1613
if charlen == - 1 :
1608
1614
charlen = None
1609
- try :
1610
- kwargs ["length" ] = int (charlen )
1611
- except ValueError :
1612
1615
kwargs ["length" ] = 0
1616
+ else :
1617
+ try :
1618
+ kwargs ["length" ] = int (charlen )
1619
+ except ValueError :
1620
+ kwargs ["length" ] = 0
1613
1621
if collation :
1614
1622
kwargs ["collation" ] = collation
1615
1623
if coltype is None :
You can’t perform that action at this time.
0 commit comments