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 when using where to filter hexadecimal format data, …
…return incorrect(stoneatom#1625) `Item_hex_string` will be transformed to `Item_int` here eventually leading to wrong type of item in evaluation. Only `Item_hex_string` and Comparison context is `REAL_RESULT` need transformation.
- Loading branch information
1 parent
7321c63
commit 700f040
Showing
6 changed files
with
51 additions
and
6 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
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,14 @@ | ||
DROP DATABASE IF EXISTS issue1625_test; | ||
create database issue1625_test; | ||
use issue1625_test; | ||
CREATE TABLE t_latin1( | ||
a CHAR(20) CHARACTER SET latin1, | ||
b VARCHAR(20) CHARACTER SET latin1, | ||
c TEXT(20) CHARACTER SET latin1 | ||
)engine=tianmu; | ||
INSERT INTO t_latin1 values(x'f242', x'f242', x'f242'); | ||
select * from t_latin1 where a=x'f242'; | ||
a b c | ||
�B �B �B | ||
DROP TABLE t_latin1; | ||
drop database issue1625_test; |
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
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,21 @@ | ||
--source include/have_tianmu.inc | ||
|
||
--disable_warnings | ||
DROP DATABASE IF EXISTS issue1625_test; | ||
--enable_warnings | ||
|
||
create database issue1625_test; | ||
use issue1625_test; | ||
|
||
CREATE TABLE t_latin1( | ||
a CHAR(20) CHARACTER SET latin1, | ||
b VARCHAR(20) CHARACTER SET latin1, | ||
c TEXT(20) CHARACTER SET latin1 | ||
)engine=tianmu; | ||
|
||
INSERT INTO t_latin1 values(x'f242', x'f242', x'f242'); | ||
|
||
select * from t_latin1 where a=x'f242'; | ||
|
||
DROP TABLE t_latin1; | ||
drop database issue1625_test; |
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