From 7a9dfb3b07a50b12a31639b55523cd8b740ea9b7 Mon Sep 17 00:00:00 2001 From: shangyanwen <18392868125@163.com> Date: Wed, 26 Oct 2022 10:05:20 +0800 Subject: [PATCH] test(mtr):update select_group_by.result(#497) --- mysql-test/suite/tianmu/r/select_group_by.result | 2 +- mysql-test/suite/tianmu/r/select_order_by.result | 2 +- mysql-test/suite/tianmu/r/temporary.result | 2 +- mysql-test/suite/tianmu/t/select_group_by.test | 2 ++ mysql-test/suite/tianmu/t/select_order_by.test | 3 ++- mysql-test/suite/tianmu/t/temporary.test | 3 ++- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mysql-test/suite/tianmu/r/select_group_by.result b/mysql-test/suite/tianmu/r/select_group_by.result index 0bfaed7d4..d707d83e8 100644 --- a/mysql-test/suite/tianmu/r/select_group_by.result +++ b/mysql-test/suite/tianmu/r/select_group_by.result @@ -156,4 +156,4 @@ COUNT(*) 3 SELECT COUNT(*) FROM t1 GROUP BY t1_tinyint, t1_int, t1_bigint HAVING t1_char = 'b'; ERROR 42S22: Unknown column 't1_char' in 'having clause' -DROP DATABASE IF EXISTS db1; \ No newline at end of file +DROP DATABASE IF EXISTS db1; diff --git a/mysql-test/suite/tianmu/r/select_order_by.result b/mysql-test/suite/tianmu/r/select_order_by.result index 2bda88edd..56c843e93 100644 --- a/mysql-test/suite/tianmu/r/select_order_by.result +++ b/mysql-test/suite/tianmu/r/select_order_by.result @@ -549,4 +549,4 @@ NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 0 NULL 403685477580676 54.797693231 8.40287 ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc c hello world! 3387-11-08 11:22:30 0 NULL 403685477580676 54.797693231 8.40287 ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc c hello world! 3387-11-08 11:22:30 0 NULL 203685477580676 -3.797693231e108 -7.40287e18 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb b hello world! 2387-11-08 11:22:30 -DROP DATABASE IF EXISTS db1; \ No newline at end of file +DROP DATABASE IF EXISTS db1; diff --git a/mysql-test/suite/tianmu/r/temporary.result b/mysql-test/suite/tianmu/r/temporary.result index 8a1593416..47c6ade1c 100644 --- a/mysql-test/suite/tianmu/r/temporary.result +++ b/mysql-test/suite/tianmu/r/temporary.result @@ -61,4 +61,4 @@ CREATE TEMPORARY TABLE `@0023sql2` (c1 INT)engine=tianmu; ALTER TABLE `@0023sql2` RENAME `#sql2`; INSERT INTO `#sql2` VALUES (2); DROP TABLE `#sql2`; -CREATE TEMPORARY TABLE `tt+1` (c1 INT)engine=tianmu; \ No newline at end of file +CREATE TEMPORARY TABLE `tt+1` (c1 INT)engine=tianmu; diff --git a/mysql-test/suite/tianmu/t/select_group_by.test b/mysql-test/suite/tianmu/t/select_group_by.test index 621f1400a..9faa442f0 100644 --- a/mysql-test/suite/tianmu/t/select_group_by.test +++ b/mysql-test/suite/tianmu/t/select_group_by.test @@ -110,5 +110,7 @@ SELECT COUNT(*) FROM t1 WHERE t1_blob IS NOT NULL OR t1_tinyint IS NULL GROUP BY ##1054: Unknown column 't1_char' in 'having clause' --error 1054 SELECT COUNT(*) FROM t1 GROUP BY t1_tinyint, t1_int, t1_bigint HAVING t1_char = 'b'; + #Clean up DROP DATABASE IF EXISTS db1; + diff --git a/mysql-test/suite/tianmu/t/select_order_by.test b/mysql-test/suite/tianmu/t/select_order_by.test index 4ad0b3220..48ce8fdc6 100644 --- a/mysql-test/suite/tianmu/t/select_order_by.test +++ b/mysql-test/suite/tianmu/t/select_order_by.test @@ -106,4 +106,5 @@ SELECT * FROM t1 ORDER BY t1_varchar, t1_datetime ASC; SELECT * FROM t1 ORDER BY t1_varchar, t1_datetime DESC; #Clean up -DROP DATABASE IF EXISTS db1; \ No newline at end of file +DROP DATABASE IF EXISTS db1; + diff --git a/mysql-test/suite/tianmu/t/temporary.test b/mysql-test/suite/tianmu/t/temporary.test index 02c169542..71954950b 100644 --- a/mysql-test/suite/tianmu/t/temporary.test +++ b/mysql-test/suite/tianmu/t/temporary.test @@ -79,4 +79,5 @@ INSERT INTO `#sql2` VALUES (2); DROP TABLE `#sql2`; #Table names contain characters -CREATE TEMPORARY TABLE `tt+1` (c1 INT)engine=tianmu; \ No newline at end of file +CREATE TEMPORARY TABLE `tt+1` (c1 INT)engine=tianmu; +