Revert "[BUGFIX] Database API: Cast bool values to integer for MySQL" 76/42076/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 28 Jul 2015 21:06:30 +0000 (23:06 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 28 Jul 2015 21:06:39 +0000 (23:06 +0200)
Not save to assume that the column will always be an int.
Failing functional tests as well.

This reverts commit cc72fd7e874c44bbd6ff6dd17c0b3ef6cdfb3623.

Change-Id: I3269ba58dd4a41003f2538ece1720342cf81afd0
Reviewed-on: http://review.typo3.org/42076
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/core/Classes/Database/DatabaseConnection.php

index a5d7493..d16a929 100644 (file)
@@ -816,9 +816,6 @@ class DatabaseConnection {
                if ($allowNull && $str === NULL) {
                        return 'NULL';
                }
-               if (is_bool($str)) {
-                       $str = (int)$str;
-               }
 
                return '\'' . $this->link->real_escape_string($str) . '\'';
        }