Skip to content

Multiple collations should fail creating table . #35195

@ramanich1

Description

@ramanich1

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

drop table if exists t1;
CREATE TABLE t1 ( x VARCHAR(10)
  COLLATE ascii_bin
  COLLATE ascii_bin);

2. What did you expect to see? (Required)

mysql> CREATE TABLE t1 ( x VARCHAR(10)
    ->   COLLATE ascii_bin
    ->   COLLATE ascii_bin);
ERROR 1064 (42000): Multiple COLLATE clauses near 'ascii_bin)' at line 3

3. What did you see instead (Required)

mysql> CREATE TABLE t1 ( x VARCHAR(10)
    ->   COLLATE ascii_bin
    ->   COLLATE ascii_bin);
Query OK, 0 rows affected (0.01 sec)

4. What is your TiDB version? (Required)

mysql> select version();
+-----------------------------------------------+
| version()                                     |
+-----------------------------------------------+
| 5.7.25-TiDB-v6.1.0-alpha-482-g81a852077-dirty |
+-----------------------------------------------+

Metadata

Metadata

Assignees

Labels

compatibility-mysql80This is a compatibility issue with MySQL 8.0(but NOT 5.7)sig/sql-infraSIG: SQL Infratype/enhancementThe issue or PR belongs to an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions