Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support NVARCHAR type. #4497

Closed
winkyao opened this issue Sep 12, 2017 · 0 comments · Fixed by #4500
Closed

Support NVARCHAR type. #4497

winkyao opened this issue Sep 12, 2017 · 0 comments · Fixed by #4500
Assignees

Comments

@winkyao
Copy link
Contributor

winkyao commented Sep 12, 2017

MySQL will convert NVARCHAR to VARCHAR, but TiDB will return error.

MySQL:

mysql> create table t1(a NVARCHAR(100));
Query OK, 0 rows affected (0.01 sec)

mysql> desc t1;
+-------+--------------+------+-----+---------+-------+
| Field | Type         | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+-------+
| a     | varchar(100) | YES  |     | NULL    |       |
+-------+--------------+------+-----+---------+-------+
1 row in set (0.00 sec)
mysql> drop table t1;
Query OK, 0 rows affected (0.21 sec)

mysql> create table t1(a NVARCHAR(100));
ERROR 1105 (HY000): line 0 column 26 near "(100))" (total length 32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant