Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into mysql.com:/home/hf/work/mysql-5.1.20835
This commit is contained in:
commit
e257416785
@ -3592,3 +3592,9 @@ FROM t1) t;
|
|||||||
COUNT(*)
|
COUNT(*)
|
||||||
3000
|
3000
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
CREATE TABLE t1 (s1 char(1));
|
||||||
|
INSERT INTO t1 VALUES ('a');
|
||||||
|
SELECT * FROM t1 WHERE _utf8'a' = ANY (SELECT s1 FROM t1);
|
||||||
|
s1
|
||||||
|
a
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -2496,3 +2496,11 @@ SELECT SQL_NO_CACHE COUNT(*)
|
|||||||
FROM t1) t;
|
FROM t1) t;
|
||||||
|
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#20835 (literal string with =any values)
|
||||||
|
#
|
||||||
|
CREATE TABLE t1 (s1 char(1));
|
||||||
|
INSERT INTO t1 VALUES ('a');
|
||||||
|
SELECT * FROM t1 WHERE _utf8'a' = ANY (SELECT s1 FROM t1);
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -797,7 +797,8 @@ bool Item_in_optimizer::fix_left(THD *thd, Item **ref)
|
|||||||
}
|
}
|
||||||
not_null_tables_cache= args[0]->not_null_tables();
|
not_null_tables_cache= args[0]->not_null_tables();
|
||||||
with_sum_func= args[0]->with_sum_func;
|
with_sum_func= args[0]->with_sum_func;
|
||||||
const_item_cache= args[0]->const_item();
|
if ((const_item_cache= args[0]->const_item()))
|
||||||
|
cache->store(args[0]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user