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(
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- )
14521446 .order_by (
14531447 key_constraints .c .constraint_name ,
14541448 key_constraints .c .ordinal_position ,
@@ -1612,12 +1606,10 @@ def get_multi_columns(
16121606 ):
16131607 if charlen == - 1 :
16141608 charlen = None
1609+ try :
1610+ kwargs ["length" ] = int (charlen )
1611+ except ValueError :
16151612 kwargs ["length" ] = 0
1616- else :
1617- try :
1618- kwargs ["length" ] = int (charlen )
1619- except ValueError :
1620- kwargs ["length" ] = 0
16211613 if collation :
16221614 kwargs ["collation" ] = collation
16231615 if coltype is None :
You can’t perform that action at this time.
0 commit comments