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.
bug(tianmu): fix throw exception while execute a union sql. (stoneato…
…m#671) [summary] 1 TempTable::VerifyAttrsSizes optimization to reduce the size is incorrect,comment the optimization for temp sulution;
- Loading branch information
lujiashun
committed
Oct 25, 2022
1 parent
5a5d6ff
commit 19b25bc
Showing
3 changed files
with
55 additions
and
25 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
7 changes: 5 additions & 2 deletions
7
mysql-test/suite/tianmu/t/issue226.testbak → mysql-test/suite/tianmu/t/issue226.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
use test; | ||
CREATE TABLE t1 (f1 VARCHAR(255) CHARACTER SET utf8) ENGINE=TIANMU; | ||
--source include/have_tianmu.inc | ||
create database test_tmp; | ||
use test_tmp; | ||
CREATE TABLE t1 (f1 VARCHAR(255) CHARACTER SET utf8mb4) ENGINE=TIANMU; | ||
CREATE TABLE t2 AS SELECT LEFT(f1,171) AS f2 FROM t1 UNION SELECT LEFT(f1,171) AS f2 FROM t1; | ||
INSERT INTO t2 VALUES ('a'); | ||
INSERT INTO t2 VALUES ('b'); | ||
INSERT INTO t2 VALUES ('c'); | ||
SELECT * FROM t2; | ||
DROP TABLE t1; | ||
DROP TABLE t2; | ||
drop database test_tmp; |
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