Skip to content
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

bug: Tianmu error ERROR 6 (HY000),when execute select..where like NULL #763

Closed
2 of 3 tasks
davidshiz opened this issue Oct 20, 2022 · 1 comment · Fixed by #908
Closed
2 of 3 tasks

bug: Tianmu error ERROR 6 (HY000),when execute select..where like NULL #763

davidshiz opened this issue Oct 20, 2022 · 1 comment · Fixed by #908
Assignees
Labels
A-bug Something isn't working

Comments

@davidshiz
Copy link
Collaborator

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the problem

mysql> create table tlike (val varchar(255));
Query OK, 0 rows affected (0.00 sec)

mysql> insert into tlike values ('abcde');
Query OK, 1 row affected (0.00 sec)

mysql> select * from tlike where val like NULL;
ERROR 6 (HY000): The query includes syntax that is not supported by the storagngine. Either restructure the query with supported syntax, or enable the MySQLre::Query Path in config file to execute the query with reduced performance.

Expected behavior

mysql> create table tlike (val varchar(255));
Query OK, 0 rows affected (0.03 sec)

mysql> insert into tlike values ('abcde');
Query OK, 1 row affected (0.01 sec)

mysql> select * from tlike where val like NULL;
Empty set (0.00 sec)

How To Reproduce

No response

Environment

ubuntu@ubuntu:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"

ubuntu@ubuntu:~$ /stonedb57/install/bin/mysqld --version
/stonedb57/install/bin/mysqld Ver 5.7.36-StoneDB for Linux on x86_64 (build-)
build information as follow:
Repository address: https://github.com/stoneatom/stonedb.git:stonedb-5.7-dev
Branch name: stonedb-5.7-dev
Last commit ID: 5d996f9
Last commit time: Date: Sat Oct 8 14:34:42 2022 +0800
Build time: Date: Fri 14 Oct 2022 12:28:00 PM UTC

Are you interested in submitting a PR to solve the problem?

  • Yes, I will!
@davidshiz davidshiz added the A-bug Something isn't working label Oct 20, 2022
@davidshiz davidshiz added this to the stonedb_5.7_v1.0.2 milestone Oct 21, 2022
@davidshiz davidshiz added the B-testing Testing tools and infrastructure label Oct 21, 2022
@isredstar isredstar self-assigned this Oct 27, 2022
@davidshiz davidshiz removed the B-testing Testing tools and infrastructure label Oct 29, 2022
@isredstar
Copy link
Collaborator

ACK

@mergify mergify bot closed this as completed in #908 Nov 14, 2022
hustjieke added a commit to hustjieke/stonedb that referenced this issue Nov 18, 2022
[summary]
1. This pr is ported from 5.7, related issue stoneatom#763
2. As where like null is supported, the sql 'select * from tlike where val like NULL;'
   executed crashed in debug mode alse be resolved in mtr issue410.test.
3. open mtr test: issue410.test
hustjieke added a commit to hustjieke/stonedb that referenced this issue Dec 5, 2022
[summary]
1. This pr is ported from 5.7, related issue stoneatom#763
2. As where like null is supported, the sql 'select * from tlike where val like NULL;'
   executed crashed in debug mode alse be resolved in mtr issue410.test.
3. open mtr test: issue410.test
mergify bot pushed a commit that referenced this issue Dec 5, 2022
[summary]
1. This pr is ported from 5.7, related issue #763
2. As where like null is supported, the sql 'select * from tlike where val like NULL;'
   executed crashed in debug mode alse be resolved in mtr issue410.test.
3. open mtr test: issue410.test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants