Project

General

Profile

Actions

Bug #105310

open

\TYPO3\CMS\Core\Database\Schema\Parser\Parser translates CHAR to VARCHAR

Added by Alexander Schnitzler about 1 month ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2024-10-15
Due date:
% Done:

0%

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

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.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #103141: TCA type=uuid does not use native uuid type for postgresqlUnder Review2024-02-17

Actions
Actions

Also available in: Atom PDF