Bug #67186

Epic #68397: Make TYPO3 work with MySQL strict mode

Impossible to save to tt_content

Added by Philipp Gampe over 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2015-05-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

There seems to be a flaw in the SQL definition for the tt_content table.

The current definition is filelink_sorting tinytext NOT NULL,, however it should have a DEFAULT '' clause.

This might only happen on SQL strict mode.

I did not actually reproduce it, but note it here so it does not get lost:
http://stackoverflow.com/questions/30484041/typo3-sorry-you-didnt-have-proper-permissions-to-perform-this-change/

#2

Updated by Morton Jonuschat over 5 years ago

MySQL BLOB and TEXT columns can not have default values: https://dev.mysql.com/doc/refman/5.6/en/blob.html

In that case it might make sense to replace tinytext with VARCHAR NOT NULL DEFAULT '', this should match how the field is being used according to TCA.

#3

Updated by Riccardo De Contardi over 5 years ago

  • Category set to 999
  • Target version set to 8 LTS
#4

Updated by Mathias Schreiber over 5 years ago

  • Parent task set to #68397
#5

Updated by Morton Jonuschat over 5 years ago

  • Assignee set to Morton Jonuschat
#6

Updated by Gerrit Code Review over 5 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41756

#7

Updated by Gerrit Code Review over 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41756

#8

Updated by Morton Jonuschat over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#9

Updated by Riccardo De Contardi over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF