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