Actions
Bug #53662
closedDatabaseConnection INSERTquery does not allow NULL values
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2013-11-15
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:
Description
When you create a new record that has input
fields with the new eval
NULL
setting the value is set correctly to NULL
in the DataHandler
but it is inserted as an empty string in the database.
The reason for this is, that the INSERTQuery()
method in the DatabaseConnection
class does not supply the $allowNull
parameter to the fullQuoteArray()
method. The UPDATEquery()
method already does this so this can also be enabled for INSERTQuery()
.
Actions