You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During recent upgrade of OS (Univention Corporate Server v4.8 --> v5.0) the database was upgraded from MariaDB10.1.48 to 10.3.36. With MariaDB 10.2.4 they changed the default sql_mode to include STRICT_TRANS_TABLES. This setting seems a reasonable default in general, but is incompatible to berliCRM.
As this change happend during distribution-upgrade there was nothing that pointed out the change and it took some time to find this problem. Only some functions of the CRM did not work, but most were doing fine.
Imho having the STRICT_TRANS_TABLES mode seems a reasonable default, that should be kept enabled globally. In addition to the global "sql_mode", that only can be changed by DB-admins, there is a per session "sql_mode" that can be changed by the client on per connection basis. in PR #757 I suggested a change to set the mode of a session, as the database-connection is persistent, I expect a minimal performance penalty only.
This change was rejected in favor of adding a test for sql_mode in the "installer". But the "installer" will not detect a change as described here, as the "installer" will never run after initial setup.
So 2 points:
How to handle conflicting global sql_modes on a shared server ? In my case I host a bunch of other databases on the same server along the CRM. other apps are fine with default having "STRICT_TRANS_TABLES" enabled
Instead relying on the "installer", a separate "check-install" tool, that can run anytime, seems more useful. So the tests can be shared between "installer" and "checker", but compatibility can be easily checked (e.g. after major upgrades of components)
The text was updated successfully, but these errors were encountered:
During recent upgrade of OS (Univention Corporate Server v4.8 --> v5.0) the database was upgraded from MariaDB10.1.48 to 10.3.36. With MariaDB 10.2.4 they changed the default sql_mode to include
STRICT_TRANS_TABLES
. This setting seems a reasonable default in general, but is incompatible to berliCRM.As this change happend during distribution-upgrade there was nothing that pointed out the change and it took some time to find this problem. Only some functions of the CRM did not work, but most were doing fine.
Imho having the
STRICT_TRANS_TABLES
mode seems a reasonable default, that should be kept enabled globally. In addition to the global "sql_mode", that only can be changed by DB-admins, there is a per session "sql_mode" that can be changed by the client on per connection basis. in PR #757 I suggested a change to set the mode of a session, as the database-connection is persistent, I expect a minimal performance penalty only.This change was rejected in favor of adding a test for sql_mode in the "installer". But the "installer" will not detect a change as described here, as the "installer" will never run after initial setup.
So 2 points:
The text was updated successfully, but these errors were encountered: