DF
Bug Report: create table statement breaks if database.table is specified and column of type text with optional lenght · Issue #17904 · vitessio/vitess · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Unknown database 'db_name' error is returned when a table is created with the CREATE TABLE statement specifying both db_name.table_name (assuming the keyspace db_name exists) for the table name and at least one column is of type TEXT(m), where m is the optional maximum lenght used to determine which kind of text type the column is as described in the mysql docs. If either the lenght or the database name is removed, then it works as expected.
Reproduction Steps
After creating a keyspace, run the following query: CREATE TABLE keyspace_name.table (col TEXT(1024));.
Overview of the Issue
An
Unknown database 'db_name'
error is returned when a table is created with theCREATE TABLE
statement specifying bothdb_name.table_name
(assuming the keyspacedb_name
exists) for the table name and at least one column is of typeTEXT(m)
, wherem
is the optional maximum lenght used to determine which kind of text type the column is as described in the mysql docs. If either the lenght or the database name is removed, then it works as expected.Reproduction Steps
After creating a keyspace, run the following query:
CREATE TABLE keyspace_name.table (col TEXT(1024));
.Observe the error.
Binary Version
Operating System and Environment details
Log Fragments
The text was updated successfully, but these errors were encountered: