Bug #88270
closedMySQL error on SeparateSysHistoryFromSysLogUpdate wizard using pdo_mysql driver
100%
Description
When using the pdo_mysql
driver, integers in the database are returned as strings. Using a mysqli
driver, the integers are returned as integers.
The upgrade wizard SeparateSysHistoryFromSysLogUpdate
does not do proper type casting, and will return an error when passing a uid
as string to a method which expects an integer.
Here is the error:
Argument 2 passed to TYPO3\\CMS\\Core\\DataHandling\\History\\RecordHistoryStore::addRecord() must be of the type int, string given, called in path_to_typo3/typo3/sysext/install/Classes/Updates/SeparateSysHistoryFromSysLogUpdate.php on line 165
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 https://review.typo3.org/c/Packages/TYPO3.CMS/+/60827
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 https://review.typo3.org/c/Packages/TYPO3.CMS/+/60827
Updated by Gerrit Code Review over 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60849
Updated by Christian Eßl over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 92b066146a0045fa861fae776c1629ceec6f8c62.