-
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
Executing the statement of select ... col like 'String'
gets the wrong result when col is unique key.
#1161
Comments
@zimulala
|
@dawxy TiDB doesn't currently support case-insensitive. Setting utf8_general_ci doesn't work. |
@zimulala |
Support utf8_general_ci collation is in the roadmap: https://github.com/pingcap/docs/blob/master/ROADMAP.md @queenypingcap will that fixes this issue? |
@darren Yes, we will fix this after we support utf8_general_ci collatio. |
Any update on this issue? |
it is neccessary to set sql_mode mysql self to get this behaviour? I tried setting sql_mode but failed: create table t (c varchar(30), unique key(c));
insert into t values('a');
SELECT * FROM t WHERE c LIKE 'A';
set @@session.sql_mode=',NO_ZERO_DATE,ANSI,ANSI_QUOTES';
SELECT * FROM t WHERE c LIKE 'A'; TiDB-Server [test]> drop table t;
Query OK, 0 rows affected (2.16 sec)
TiDB-Server [test]> create table t (c varchar(30), unique key(c));
Query OK, 0 rows affected (3.22 sec)
TiDB-Server [test]> insert into t values('a');
Query OK, 1 row affected (0.21 sec)
TiDB-Server [test]> SELECT * FROM t WHERE c LIKE 'A';
Empty set (0.00 sec)
TiDB-Server [test]> set @@session.sql_mode=',NO_ZERO_DATE,ANSI,ANSI_QUOTES';
Query OK, 0 rows affected (0.01 sec)
TiDB-Server [test]> SELECT * FROM t WHERE c LIKE 'A';
Empty set (0.02 sec)
TiDB-Server [test]>
|
Is there any update on this? |
@darren Case insensitive collation is on our roadmap but we will not work on in this year. Maybe in the early days next year. |
Any updates? Is it included in the latest release version v3.0.2? |
@nickbaba2012 No, it has not started yet. |
Hi @nickbaba2012 @dawxy @darren , now we have a plan for CI collations, I will land an RFC firstly. |
This issue can still be reproduced on Master. |
|
/assign @ichn-hu |
It is confirmed that this bug still persists in the current master branch, even if we explicitly use the
|
/assign @bb7133 |
After a more careful investigation, this bug is already fixed. As the document states, https://docs.pingcap.com/tidb/stable/character-set-and-collation#new-framework-for-collations, we need to enable
on the first time of bootstrap, and then the collation will work as MySQL.
@lzmhhh123 Please help close this issue. |
/info |
* add soundex * add unit test
* add soundex * add unit test
Description
1.What did you do?
2.What did you expect to see?
+------+
| c |
+------+
| a |
+------+
3.What did you see instead?
Empty set (0.00 sec)
SIG slack channel
#sig-exec
Score
Mentor
The text was updated successfully, but these errors were encountered: