@@ -6748,14 +6748,13 @@ t1 CREATE TABLE `t1` (
6748
6748
INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
6749
6749
SELECT ch FROM t1 WHERE ch='admin𝌆';
6750
6750
ch
6751
- Warnings:
6752
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
6751
+ EXPLAIN SELECT ch FROM t1 WHERE ch='admin𝌆';
6752
+ id select_type table type possible_keys key key_len ref rows Extra
6753
+ 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
6753
6754
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
6754
6755
ch
6755
6756
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
6756
6757
ch
6757
- Warnings:
6758
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
6759
6758
DELETE FROM t1;
6760
6759
INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
6761
6760
INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
@@ -6771,22 +6770,14 @@ EXPLAIN
6771
6770
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
6772
6771
id select_type table type possible_keys key key_len ref rows Extra
6773
6772
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
6774
- Warnings:
6775
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
6776
6773
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
6777
6774
ch
6778
- Warnings:
6779
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
6780
6775
EXPLAIN
6781
6776
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
6782
6777
id select_type table type possible_keys key key_len ref rows Extra
6783
6778
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
6784
- Warnings:
6785
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
6786
6779
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
6787
6780
ch
6788
- Warnings:
6789
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
6790
6781
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
6791
6782
ch
6792
6783
a
@@ -6829,8 +6820,6 @@ EXPLAIN
6829
6820
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
6830
6821
id select_type table type possible_keys key key_len ref rows Extra
6831
6822
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
6832
- Warnings:
6833
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
6834
6823
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
6835
6824
ch
6836
6825
a
@@ -6850,14 +6839,10 @@ ab
6850
6839
az
6851
6840
aЀ
6852
6841
aր
6853
- Warnings:
6854
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
6855
6842
EXPLAIN
6856
6843
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
6857
6844
id select_type table type possible_keys key key_len ref rows Extra
6858
6845
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
6859
- Warnings:
6860
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
6861
6846
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
6862
6847
ch
6863
6848
a
6877
6862
az
6878
6863
aЀ
6879
6864
aր
6880
- Warnings:
6881
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
6882
6865
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
6883
6866
ch
6884
6867
z
@@ -6889,24 +6872,16 @@ EXPLAIN
6889
6872
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
6890
6873
id select_type table type possible_keys key key_len ref rows Extra
6891
6874
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
6892
- Warnings:
6893
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
6894
6875
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
6895
6876
ch
6896
6877
z
6897
- Warnings:
6898
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
6899
6878
EXPLAIN
6900
6879
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
6901
6880
id select_type table type possible_keys key key_len ref rows Extra
6902
6881
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
6903
- Warnings:
6904
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
6905
6882
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
6906
6883
ch
6907
6884
z
6908
- Warnings:
6909
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
6910
6885
ALTER TABLE t1 DROP KEY ch;
6911
6886
# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
6912
6887
SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
@@ -6992,14 +6967,13 @@ t1 CREATE TABLE `t1` (
6992
6967
INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
6993
6968
SELECT ch FROM t1 WHERE ch='admin𝌆';
6994
6969
ch
6995
- Warnings:
6996
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
6970
+ EXPLAIN SELECT ch FROM t1 WHERE ch='admin𝌆';
6971
+ id select_type table type possible_keys key key_len ref rows Extra
6972
+ 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
6997
6973
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
6998
6974
ch
6999
6975
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
7000
6976
ch
7001
- Warnings:
7002
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
7003
6977
DELETE FROM t1;
7004
6978
INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
7005
6979
INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
@@ -7015,22 +6989,14 @@ EXPLAIN
7015
6989
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
7016
6990
id select_type table type possible_keys key key_len ref rows Extra
7017
6991
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
7018
- Warnings:
7019
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
7020
6992
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
7021
6993
ch
7022
- Warnings:
7023
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
7024
6994
EXPLAIN
7025
6995
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
7026
6996
id select_type table type possible_keys key key_len ref rows Extra
7027
6997
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
7028
- Warnings:
7029
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
7030
6998
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
7031
6999
ch
7032
- Warnings:
7033
- Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
7034
7000
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
7035
7001
ch
7036
7002
a
0 commit comments