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 t3(s varchar(10) not null primary key)engine=stonedb;
insert into t3 values ('one '), ('two\t');
select * from t3 where s = 'one'; (note:No result is displayed)
Empty set (0.00 sec)
Expected behavior
select * from t3 where s = 'one';
+------+
| s |
+------+
| one |
+------+
1 row in set (0.00 sec)
note:Above is the result of the InnoDB test run
How To Reproduce
create table t3(s varchar(10) not null primary key)engine=stonedb;
insert into t3 values ('one '), ('two\t');
select * from t3 where s = 'one';
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:
shangyanwen
changed the title
bug: Insert value has space, delete space when select, query result is not displayed
bug: incorrect result set.Insert value has space, delete space when select, query result is not displayed
Sep 29, 2022
stonedb supports strict sql mode, when the inserted string contains spaces, the query should also contain spaces
mysql>insert into t3 values ('one '), ('two\t');
Query OK, 2 rows affected (0.00 sec)
Records: 2 Duplicates: 0 Warnings: 0
mysql>select*from t3 where s ='one ';
+------+
| s |
+------+
| one |
+------+1 row inset (3 min 2.58 sec)
mysql>select*from t3 where s ='two\t';
+------+
| s |
+------+
| two |
+------+1 row inset (6.16 sec)
Describe the problem
Expected behavior
note:Above is the result of the InnoDB test run
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: