From afbdcd413adf6ff5b15de0e9c5d332aecf66850e Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 8 Sep 2005 22:57:27 +0200 Subject: BUG#12695: Item_func_isnull::update_used_tables did not update const_item_cache --- mysql-test/t/group_by.test | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mysql-test/t/group_by.test') diff --git a/mysql-test/t/group_by.test b/mysql-test/t/group_by.test index 815da66c717..f14fab2d30e 100644 --- a/mysql-test/t/group_by.test +++ b/mysql-test/t/group_by.test @@ -600,4 +600,14 @@ insert into t1 values('2005-06-06'); select date(left(f1+0,8)) from t1 group by 1; drop table t1; +# +# BUG#12695: Item_func_isnull::update_used_tables +# did not update const_item_cache +# +create table t1(f1 varchar(5) key); +insert into t1 values (1),(2); +select sql_buffer_result max(f1) is null from t1; +select sql_buffer_result max(f1)+1 from t1; +drop table t1; + # End of 4.1 tests -- cgit v1.2.1