DBZ-7693 Add support for NATIONAL CHAR to MariaDB grammar

This commit is contained in:
Chris Cranford 2024-03-29 10:44:24 -04:00 committed by Jiri Pechanec
parent 421ecc9c9a
commit c20c91111d
2 changed files with 2 additions and 1 deletions

View File

@ -2263,7 +2263,7 @@ dataType
| NVARCHAR
| LONG
) VARYING? lengthOneDimension? BINARY? (charSet charsetName)? (COLLATE collationName | BINARY)? # stringDataType
| NATIONAL typeName = (VARCHAR | CHARACTER) lengthOneDimension? BINARY? # nationalStringDataType
| NATIONAL typeName = (VARCHAR | CHARACTER | CHAR) lengthOneDimension? BINARY? # nationalStringDataType
| NCHAR typeName = VARCHAR lengthOneDimension? BINARY? # nationalStringDataType
| NATIONAL typeName = (CHAR | CHARACTER) VARYING lengthOneDimension? BINARY? # nationalVaryingStringDataType
| typeName = (

View File

@ -19,6 +19,7 @@ CREATE USER 'jim' @localhost IDENTIFIED BY '123';
create table new_t (like t1);
create table log_table(row varchar(512));
create table log_table(row character(512));
create table new_t (c national char);
create table ships(name varchar(255), class_id int, id int);
create table ships_guns(guns_id int, ship_id int);
create table guns(id int, power decimal(7,2), callibr decimal(10,3));