[!!!][BUGFIX] Database API: Cast bool values to integer for MySQL 76/42376/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 7 Aug 2015 10:03:24 +0000 (12:03 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 7 Aug 2015 15:12:17 +0000 (17:12 +0200)
commit748c8294cba18966f3d4aa1370ebb8c8c2313376
treeecfe694760a3925dfc6604afedcec04632cc59c0
parent56488f85eb4c3597e40817c8d1b1e9339c19faae
[!!!][BUGFIX] Database API: Cast bool values to integer for MySQL

Convert boolean values to integers before processing them with
mysqli_real_escape_string() to ensure that FALSE values get converted to
'0' instead of '', which isn't a valid value for integer columns in
MySQL strict mode.

Resolves: #68562
Releases: master
Change-Id: Iefbdce55d872a94ad98bd2b9fa66627830725084
Reviewed-on: http://review.typo3.org/42376
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/core/Classes/Database/DatabaseConnection.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-68562-BoolValuesNeedToBeCastToIntegerForMySQLStrictMode.rst [new file with mode: 0644]