Project

General

Profile

Actions

Bug #81610

closed

Install Tool > Database Analyzer: Migration failed for fields containing a space

Added by Frank Nägler over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2017-06-19
Due date:
% Done:

100%

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

Description

In one of my installations, the install tool database analyzer shows the following query to execute:

ALTER TABLE tx_foo_bar CHANGE l18n_diffsourc e `zzz_deleted_l18n_diffsourc e` MEDIUMBLOB DEFAULT NULL

The existing field contains really a space, which is fine for some databases. (sure in is this case it is a mistake)

After executing the query, this query fails:

Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`zzz_deleted_l18n_diffsourc e` MEDIUMBLOB DEFAULT NULL' at line 1

I guess the problem is, that the field name is not quoted.


Files

Screen Shot 2017-07-01 at 10.56.39.png (239 KB) Screen Shot 2017-07-01 at 10.56.39.png Screenshot showing the resulting quoting/migration statements based on this patch Morton Jonuschat, 2017-07-01 20:02
Actions

Also available in: Atom PDF