Closed yeezy69 closed 7 years ago
Thanks for reporting! TYPO3 in general does not support STRICT_TRANS_TABLES but I'm willing to fix this anyway. More like something for the next major or at least minor version. And needs some testing in all supported versions.
Did you notice these? https://forge.typo3.org/issues/54883 https://forge.typo3.org/issues/68704 https://forge.typo3.org/issues/70629
@yeezy69 Any feedback on this issue?
After change/upgrade from mysql-5.5 to mariadb-10 i had following problem:
When i try to insert new typo3-content, i became this message:
SQL error: 'Field 'tx_generic_gallery_predefined' doesn't have a default value' (tt_content:NEW589a3ba62f968221060887) (msg#1.1.12)
Default sql_mode in Ubuntu 16.04 Server for mariadb-10 is STRICT_TRANS_TABLES. BLOB and TEXT columns cannot have DEFAULT values. The BLOB and TEXT fields of generic-gallery are wrongly NOT NULL.
Example:
The tinytext field b has no default value. This is no problem, when the insert command has some value for b.
But while run insert without field b, an error occours.
--> SQL error: Field 'b' doesn't have a default value
Workaround is to remove STRICT_TRANS_TABLES from sql_mode in /etc/mysql/my.cnf (or set only sql_mode=NO_ENGINE_SUBSTITUTION).
Real solution: I modified your ext_tables.sql for running with strict-trans-tables is active. I removed "NOT NULL" from any tinytext, mediumtext and blob field. Then default value is NULL.