Skip to content

Commit

Permalink
fix: max_positive_value for Integer types (#17712)
Browse files Browse the repository at this point in the history
* fix: max_positive_value for Integer types

* style: formatting

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
(cherry picked from commit d88d9f5)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Aug 2, 2022
1 parent 8c0e5ab commit 062273a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/model/base_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)
from frappe.utils.html_utils import unescape_html

max_positive_value = {"smallint": 2**15, "int": 2**31, "bigint": 2**63}
max_positive_value = {"smallint": 2**15 - 1, "int": 2**31 - 1, "bigint": 2**63 - 1}

DOCTYPES_FOR_DOCTYPE = ("DocType", "DocField", "DocPerm", "DocType Action", "DocType Link")

Expand Down

0 comments on commit 062273a

Please sign in to comment.