[!!!][BUGFIX] Database API: Cast bool values to integer for MySQL
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Database / DatabaseConnection.php
index d3816e7..6333823 100644 (file)
@@ -816,6 +816,9 @@ class DatabaseConnection {
                if ($allowNull && $str === NULL) {
                        return 'NULL';
                }
+               if (is_bool($str)) {
+                       $str = (int)$str;
+               }
 
                return '\'' . $this->link->real_escape_string($str) . '\'';
        }