diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result index 822fab5ae47..4b3046770dc 100644 --- a/mysql-test/r/variables.result +++ b/mysql-test/r/variables.result @@ -333,4 +333,5 @@ check table t1,t2; Table Op Msg_type Msg_text test.t1 check status OK test.t2 check status OK +select max(a) +1, max(a) +2 into @xx,@yy from t1; drop table t1,t2; diff --git a/mysql-test/t/variables.test b/mysql-test/t/variables.test index 4bde54f868a..7671b663738 100644 --- a/mysql-test/t/variables.test +++ b/mysql-test/t/variables.test @@ -241,5 +241,6 @@ select @@key_buffer_size; select * from t1 where a=2; select * from t2 where a=3; check table t1,t2; +select max(a) +1, max(a) +2 into @xx,@yy from t1; drop table t1,t2;