Project

General

Profile

Actions

Bug #81784

closed

DatabaseConnection function INSERTmultipleRows does not allow NULL values

Added by Christian Reiter almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2017-07-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Just like issue #53662 which affected INSERTquery:

the INSERTmultipleRows() method in the DatabaseConnection class does not supply the $allowNull parameter to the fullQuoteArray() method.

This causes values that should be NULL to be inserted as empty strings '' instead.

Visible frontend effects will for instance happen with sys_file_reference (title = NULL means no element specific value so load title from sys_file_metadata; title = '' means empty string as specific value - result in a filelinks element would be showing filename instead of metadata title...)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #53662: DatabaseConnection INSERTquery does not allow NULL valuesClosed2013-11-15

Actions
Actions #1

Updated by Christian Reiter almost 7 years ago

  • Related to Bug #53662: DatabaseConnection INSERTquery does not allow NULL values added
Actions #2

Updated by Christian Kuhn over 5 years ago

  • Status changed from New to Closed

Hey. Thanks for reporting this issue. The core switched to doctrine with version 8, so it should not be a problem with that version anymore. You should use that new API since v8 anyway. The class has even been removed from core (extracted as optional external extension for b/w compat) in v9. v7 is now in 'hard blockers only' mode, so we will not fix it there anymore, either.
If you really rely on this, you probably will have to patch an instance yourself.
I'll close this issue for now.

Actions

Also available in: Atom PDF