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
CREATE TABLE t1 (name varchar(255))engine=stonedb;
CREATE TABLE t2 (name varchar(255), n int, KEY (name(3)))engine=stonedb;
INSERT INTO t1 VALUES ('ccc'), ('bb'), ('cc '), ('aa '), ('aa');
INSERT INTO t2 VALUES ('bb',1), ('aa',2), ('cc ',3);
INSERT INTO t2 VALUES (concat('cc ', 0x06), 4);
INSERT INTO t2 VALUES ('cc',5), ('bb ',6), ('cc ',7);
SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
##The error results are as follows
+------+--------------+------+
| name | LENGTH(name) | n |
+------+--------------+------+
| cc | 3 | 7 |
+------+--------------+------+
1 row in set (0.01 sec)
Expected behavior
##The following is:innodb test result
SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
+-------+--------------+------+
| name | LENGTH(name) | n |
+-------+--------------+------+
| cc | 5 | 3 |
| cc | 2 | 5 |
| cc | 3 | 7 |
+-------+--------------+------+
3 rows in set (0.01 sec)
How To Reproduce
CREATE TABLE t1 (name varchar(255))engine=stonedb;
CREATE TABLE t2 (name varchar(255), n int, KEY (name(3)))engine=stonedb;
INSERT INTO t1 VALUES ('ccc'), ('bb'), ('cc '), ('aa '), ('aa');
INSERT INTO t2 VALUES ('bb',1), ('aa',2), ('cc ',3);
INSERT INTO t2 VALUES (concat('cc ', 0x06), 4);
INSERT INTO t2 VALUES ('cc',5), ('bb ',6), ('cc ',7);
SELECT name, LENGTH(name), n FROM t2 WHERE name='cc ';
Environment
StoneDB for mysql5.7 (release)
Ubuntu 20.04.4
Are you interested in submitting a PR to solve the problem?
Yes, I will!
The text was updated successfully, but these errors were encountered:
Describe the problem
Expected behavior
How To Reproduce
Environment
Are you interested in submitting a PR to solve the problem?
The text was updated successfully, but these errors were encountered: