mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-10 19:36:33 +03:00
fix int ranges
This commit is contained in:
parent
64f8cde1c0
commit
5b033a1e1b
|
@ -154,22 +154,22 @@ class Int8Field(BaseIntField):
|
|||
|
||||
class Int16Field(BaseIntField):
|
||||
|
||||
min_value = -2**16
|
||||
max_value = 2**16 - 1
|
||||
min_value = -2**15
|
||||
max_value = 2**15 - 1
|
||||
db_type = 'Int16'
|
||||
|
||||
|
||||
class Int32Field(BaseIntField):
|
||||
|
||||
min_value = -2**32
|
||||
max_value = 2**32 - 1
|
||||
min_value = -2**31
|
||||
max_value = 2**31 - 1
|
||||
db_type = 'Int32'
|
||||
|
||||
|
||||
class Int64Field(BaseIntField):
|
||||
|
||||
min_value = -2**64
|
||||
max_value = 2**64 - 1
|
||||
min_value = -2**63
|
||||
max_value = 2**63 - 1
|
||||
db_type = 'Int64'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user