Issue Bug Closed

#53728SQL view crashes Database

Francois Suter 11/18/13, 11:56 updated 11/18/13, 12:01

Description

Methods \TYPO3\CMS\Core\Database\DatabaseConnection::admin_get_fields() and \TYPO3\CMS\Core\Database\DatabaseConnection::admin_get_keys() lack a proper check on the result of the query to ensure that they indeed returned an object.

In particular this causes a crash in the Install Tool > Database Analyser > Compare function when a SQL view is present.

A check should be added. It already exists for similar methods \TYPO3\CMS\Core\Database\DatabaseConnection::admin_get_tables() and \TYPO3\CMS\Core\Database\DatabaseConnection::admin_get_charsets().

This problem exists since the move to PDO.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.