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