summaryrefslogtreecommitdiff
path: root/mysql-test/main/having.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/having.result')
-rw-r--r--mysql-test/main/having.result11
1 files changed, 5 insertions, 6 deletions
diff --git a/mysql-test/main/having.result b/mysql-test/main/having.result
index 7106b42fc8d..d1e8ec56670 100644
--- a/mysql-test/main/having.result
+++ b/mysql-test/main/having.result
@@ -1,4 +1,3 @@
-drop table if exists t1,t2,t3;
create table t1 (a int);
select count(a) as b from t1 where a=0 having b > 0;
b
@@ -280,11 +279,7 @@ select t1.col1 as tmp_col from t1
where t1.col2 in
(select t2.col2 from t2
group by t2.col1, t2.col2 having tmp_col <= 10);
-tmp_col
-10
-10
-10
-10
+ERROR 42S22: Unknown column 'tmp_col' in 'having clause'
select t1.col1 from t1
where t1.col2 in
(select t2.col2 from t2
@@ -882,8 +877,10 @@ h
#
#
drop table t1;
+#
# End of 10.3 tests
#
+#
# MDEV-18681: AND formula in HAVING with several occurances
# of the same field f in different conjuncts + f=constant
#
@@ -908,4 +905,6 @@ INSERT INTO t VALUES ('a'),('b');
SELECT * FROM t HAVING f = 'foo';
f
DROP TABLE t;
+#
# End of 10.4 tests
+#