瀏覽代碼

fix: max_positive_value for Integer types (#17712) (#17714)

* fix: max_positive_value for Integer types

* style: formatting

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
(cherry picked from commit d88d9f5186)

Co-authored-by: Sagar Sharma <sagarsharma.s312@gmail.com>
version-14
mergify[bot] 2 年之前
committed by GitHub
父節點
當前提交
306af63b8d
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/model/base_document.py

+ 1
- 1
frappe/model/base_document.py 查看文件

@@ -20,7 +20,7 @@ from frappe.modules import load_doctype_module
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"),


Loading…
取消
儲存