Issue Bug Closed

#53662DatabaseConnection INSERTquery does not allow NULL values

Alexander Stehlik 11/15/13, 13:59 updated 10/02/18, 12:08

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().

Reviews 3