Skip to content

Commit 8ba849b

Browse files
committed
convert biginteger to float
Biginteger can be too big for integer because integer is limited to 32 bit
1 parent ceb5cc5 commit 8ba849b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphene_sqlalchemy/converter.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def convert_column_to_string(type, column, registry=None):
9595

9696

9797
@convert_sqlalchemy_type.register(types.SmallInteger)
98-
@convert_sqlalchemy_type.register(types.BigInteger)
98+
#@convert_sqlalchemy_type.register(types.BigInteger)
9999
@convert_sqlalchemy_type.register(types.Integer)
100100
def convert_column_to_int_or_id(type, column, registry=None):
101101
if column.primary_key:
@@ -111,6 +111,7 @@ def convert_column_to_boolean(type, column, registry=None):
111111

112112
@convert_sqlalchemy_type.register(types.Float)
113113
@convert_sqlalchemy_type.register(types.Numeric)
114+
@convert_sqlalchemy_type.register(types.BigInteger)
114115
def convert_column_to_float(type, column, registry=None):
115116
return Float(description=column.doc, required=not(column.nullable))
116117

0 commit comments

Comments
 (0)