Explorar el Código

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] hace 2 años
committed by GitHub
padre
commit
306af63b8d
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      frappe/model/base_document.py

+ 1
- 1
frappe/model/base_document.py Ver fichero

@@ -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"),


Cargando…
Cancelar
Guardar