From 4c0e2960d458cb437d4aa06d9193f5576c027448 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Mon, 23 May 2016 10:54:09 +0400 Subject: MDEV-10051 Fix subselect to return a syntax error instead of "Incorrect usage of UNION and LIMIT" --- mysql-test/t/subselect.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mysql-test/t/subselect.test') diff --git a/mysql-test/t/subselect.test b/mysql-test/t/subselect.test index 5313a4b8a39..c19613da493 100644 --- a/mysql-test/t/subselect.test +++ b/mysql-test/t/subselect.test @@ -569,7 +569,7 @@ drop table t1, t2; create table t1 (a float); -- error ER_NOT_SUPPORTED_YET select 10.5 IN (SELECT * from t1 LIMIT 1); --- error ER_WRONG_USAGE +-- error ER_PARSE_ERROR select 10.5 IN (SELECT * from t1 LIMIT 1 UNION SELECT 1.5); -- error ER_NOT_SUPPORTED_YET select 10.5 IN (SELECT * from t1 UNION SELECT 1.5 LIMIT 1); -- cgit v1.2.1