Issue Bug Closed

#88270MySQL error on SeparateSysHistoryFromSysLogUpdate wizard using pdo_mysql driver

Patrick Broens 05/04/19, 10:42 updated 12/23/19, 22:49

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

Reviews 2