Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't save document
#2
Ah, MySQL Strict

This is one of the many things I have pending. We have dedicated a lot of time to making coreBOS work corretly with MySQL Strict mode. The one thing we haven't gotten around to yet is controlling the length of the fields.

In MySQL strict mode, if you try to insert a text into a varchar field that is longer than what fits there, you get an error and the whole process is aborted.

Suppose you have a field defined as varchar(5) and try to insert there STRING, the insert will fail. Before MySQL strict you got your string truncated: STRIN

What needs to be done is to calculate the length of all fields in the database, write that into the vtiger_field table and then add validations accordingly before you try to save.

anyone up to the challenge?
Joe
TSolucio
Reply


Messages In This Thread
Can't save document - Guido1982 - 09-14-2017, 01:49 PM
RE: Can't save document - joebordes - 09-14-2017, 05:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)