Bug #69247
closedEpic #68397: Make TYPO3 work with MySQL strict mode
Inserting records fails when the model has a incompatible default value
100%
Description
Inserting a new record through an extbase repository fails if the model and the database schema have incompatible defaults.
Example:
If the model has a property `title` without any default value assigned (so its NULL for PHP) and the database schema has the column defined as `title varchar(255) DEFAULT '' NOT NULL` extbase tries to insert an explicit NULL into the database.
This is due to the new default value determination insertObject().
Updated by Morton Jonuschat over 9 years ago
- Status changed from New to In Progress
Updated by Gerrit Code Review over 9 years ago
- Status changed from In Progress 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/42821
Updated by Gerrit Code Review about 9 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/42821
Updated by Morton Jonuschat about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0e37d59849b5f20c5e094a93f965e2d91fe38e87.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed