forked from stoneatom/stonedb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tianmu): fix query syntax (WHERE NOT IN ) is not supported. (ston…
…eatom#767) [summary] 1 'sub_select' item is the left argument,not the right argument of 'item_func'; 2 5.7 use 'item_func_not' class to represent the meaning of the syntax "not", while 8.0 use a variable 'value_transform';
- Loading branch information
lujiashun
committed
Nov 11, 2022
1 parent
6669693
commit f566a1b
Showing
4 changed files
with
49 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use test; | ||
create table tt(val int) ENGINE=TIANMU; | ||
insert into tt values (12); | ||
select * from tt where 42 not in (select * from tt where val > 42); | ||
val | ||
12 | ||
select * from tt where 42 in (select * from tt where val > 42); | ||
val | ||
drop table tt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--source include/have_tianmu.inc | ||
use test; | ||
create table tt(val int) ENGINE=TIANMU; | ||
insert into tt values (12); | ||
select * from tt where 42 not in (select * from tt where val > 42); | ||
select * from tt where 42 in (select * from tt where val > 42); | ||
drop table tt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters