Skip to content

Commit

Permalink
fix: max_positive_value for Integer types (#17712) (#17714)
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)

Co-authored-by: Sagar Sharma <sagarsharma.s312@gmail.com>
  • Loading branch information
mergify[bot] and s-aga-r committed Aug 2, 2022
1 parent 1655fb3 commit 306af63
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 @@ -20,7 +20,7 @@
from frappe.utils import cast_fieldtype, cint, cstr, flt, now, sanitize_html, strip_html
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}

DOCTYPE_TABLE_FIELDS = [
_dict(fieldname="fields", options="DocField"),
Expand Down

0 comments on commit 306af63

Please sign in to comment.