Bug #52204

Epic #68397: Make TYPO3 work with MySQL strict mode

SQL error: Incorrect integer value: '' for column 'backend_layout

Added by Stefan Neufeind almost 2 years ago. Updated 14 days ago.

Status:Rejected Start date:2013-09-24
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:- Spent time: -
Target version:-
TYPO3 Version:6.2 Is Regression:No
PHP Version: Sprint Focus:
Complexity:

Description

SQL error: 'Incorrect integer value: '' for column 'backend_layout' at row 1' (pages:NEW12345)

This happens for me on master when trying to create a new page either by drag-n-drop in the page-tree or the new-wizard.


Related issues

related to Core - Bug #52206: Default-values for text-fields Resolved 2013-09-24
related to Core - Task #54883: Document that TYPO3 CMS is not compatible with MySQL stri... Resolved 2014-01-09
related to Core - Bug #18866: Cannot create page with Mysl in strict mode (STRICT_TRANS... Rejected 2008-05-28

History

#1 Updated by Gerrit Code Review almost 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24007

#2 Updated by Stefan Neufeind almost 2 years ago

for 4.5/4.7 this is in: t3lib/stddb/tbl_pages.php

It didn't occur to me on regular installations, so I wonder if maybe newer MySQL-releases are a bit more picky about trying to set an empty string for a integer-column. But it's wrong with trying to set a string there anyhow ...
Happened to me locally with Fedora 19 using mariadb-server-5.5.32-8.fc19

#3 Updated by Stefan Neufeind almost 2 years ago

Turns out that from recent system-environment-testing I still had "sql-mode = STRICT_ALL_TABLES" in my.cnf. Removing that makes the problem go away. Still fix it since it's "wrong"?

#4 Updated by Stefan Neufeind almost 2 years ago

  • Status changed from Under Review to Rejected

Only happens with "sql-mode = STRICT_ALL_TABLES" which is not suggested. Georg mentioned on gerrit that the new dataproviders might/will/... work with strings anyway then. Not needed to have this patch.

#5 Updated by Axel Dörfler over 1 year ago

Any chance to reconsider this decision for older version? It's no help for current (even LTS) users to keep this bug around. MySQL, and MariaDB are configured in strict mode by default.

#6 Updated by Axel Dörfler over 1 year ago

An alternative solution would be to be able to set the SQL_MODE for the session from within Typo3 -- it may not always be possible to influence the global SQL_MODE that is used on hosting solutions.

#7 Updated by Stefan Neufeind over 1 year ago

Hmm, default on your hosting-environment or really a MySQL-default? Do you know since what versions?

#8 Updated by Patrik Nasfors over 1 year ago

Strict mode is a MySQL default on Windows at least since version 5.0.

#9 Updated by Jörg Wagner about 1 year ago

Strict mode is also the default on Mac when using the current MySQL installer packages (mysql-5.6.17-osx10.7-x86_64.dmg).

#10 Updated by Morton Jonuschat 14 days ago

  • Parent task set to #68397

Also available in: Atom PDF