#105310\TYPO3\CMS\Core\Database\Schema\Parser\Parser translates CHAR to VARCHAR
Description
Given the following ext_tables.sql
CREATE TABLE table (
column CHAR(2),
);
the schema parser detects a char-type but it translates it into a doctrine/dbal type string without fixed set to true. So, this will be translated to
CREATE TABLE table (
column VARCHAR(2),
);
This would be fixed if the constructor of \TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType\CharDataType sets its fixed property to true.
Alternatively, fixed could be part of the options passed into the constructor.
Reviews 6
- 13.4 90291[BUGFIX] Remove 14.0 changelog from v13
- 13.4 87656[BUGFIX] Create `CHAR` and `BINARY` as fixed length columns
- main 87584[BUGFIX] Create `CHAR` and `BINARY` as fixed length columns
- 12.4 87621[TASK] Use `VARCHAR` instead of `CHAR` in core `ext_tables.sql` files
- 13.4 87620[TASK] Use `VARCHAR` instead of `CHAR` in core `ext_tables.sql` files
- main 87596[TASK] Use `VARCHAR` instead of `CHAR` in core `ext_tables.sql` files