-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Literal values character set introducer and COLLATE clause support. #4353
Comments
TiDB now supports most of these. The following still produce errors:
|
@morgo It seems that we can close this issue now. |
Confirming all these cases are fixed: mysql> SELECT _latin1'string';
+--------+
| string |
+--------+
| string |
+--------+
1 row in set (0.00 sec)
mysql> SELECT _binary'string';
+--------+
| string |
+--------+
| string |
+--------+
1 row in set (0.00 sec)
mysql> SELECT _utf8'string' COLLATE utf8_danish_ci;
+--------------------------------------+
| _utf8'string' COLLATE utf8_danish_ci |
+--------------------------------------+
| string |
+--------------------------------------+
1 row in set (0.00 sec)
mysql>
mysql> SELECT _latin1 X'4D7953514C';
+-----------------------+
| _latin1 X'4D7953514C' |
+-----------------------+
| MySQL |
+-----------------------+
1 row in set (0.00 sec)
mysql> SELECT _utf8 0x4D7953514C COLLATE utf8_danish_ci;
+-------------------------------------------+
| _utf8 0x4D7953514C COLLATE utf8_danish_ci |
+-------------------------------------------+
| MySQL |
+-------------------------------------------+
1 row in set (0.00 sec)
mysql>
mysql> SELECT _latin1 b'1000001';
+--------------------+
| _latin1 b'1000001' |
+--------------------+
| A |
+--------------------+
1 row in set (0.00 sec)
mysql> SELECT _utf8 0b1000001 COLLATE utf8_danish_ci;
+----------------------------------------+
| _utf8 0b1000001 COLLATE utf8_danish_ci |
+----------------------------------------+
| A |
+----------------------------------------+
1 row in set (0.00 sec)
mysql> SELECT tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v4.0.0-beta.2-1868-g1a9852f85
Edition: Community
Git Commit Hash: 1a9852f85f7b90b013cafdd136260367203a29c0
Git Branch: release-5.0-rc
UTC Build Time: 2020-12-19 13:37:36
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
1 row in set (0.00 sec)
I am going to close this now. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MySQL support bellow syntax but TiDB not:
Example:
and use
N
to create a string in the national character set. these statements are equivalent:The text was updated successfully, but these errors were encountered: