Actions
Bug #88270
closedMySQL error on SeparateSysHistoryFromSysLogUpdate wizard using pdo_mysql driver
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2019-05-04
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
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
Actions