Auto-merged fix for bug#49489.
This commit is contained in:
commit
684c7aba09
@ -4694,4 +4694,14 @@ HAVING v <= 't'
|
|||||||
ORDER BY pk;
|
ORDER BY pk;
|
||||||
v
|
v
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
#
|
||||||
|
# Bug#49489 Uninitialized cache led to a wrong result.
|
||||||
|
#
|
||||||
|
CREATE TABLE t1(c1 DOUBLE(5,4));
|
||||||
|
INSERT INTO t1 VALUES (9.1234);
|
||||||
|
SELECT * FROM t1 WHERE c1 < 9.12345;
|
||||||
|
c1
|
||||||
|
9.1234
|
||||||
|
DROP TABLE t1;
|
||||||
|
# End of test for bug#49489.
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
|
@ -4014,4 +4014,13 @@ ORDER BY pk;
|
|||||||
|
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # Bug#49489 Uninitialized cache led to a wrong result.
|
||||||
|
--echo #
|
||||||
|
CREATE TABLE t1(c1 DOUBLE(5,4));
|
||||||
|
INSERT INTO t1 VALUES (9.1234);
|
||||||
|
SELECT * FROM t1 WHERE c1 < 9.12345;
|
||||||
|
DROP TABLE t1;
|
||||||
|
--echo # End of test for bug#49489.
|
||||||
|
|
||||||
--echo End of 5.1 tests
|
--echo End of 5.1 tests
|
||||||
|
@ -1031,7 +1031,7 @@ Item** Arg_comparator::cache_converted_constant(THD *thd, Item **value,
|
|||||||
(*value)->const_item() && type != (*value)->result_type())
|
(*value)->const_item() && type != (*value)->result_type())
|
||||||
{
|
{
|
||||||
Item_cache *cache= Item_cache::get_cache(*value, type);
|
Item_cache *cache= Item_cache::get_cache(*value, type);
|
||||||
cache->store(*value);
|
cache->setup(*value);
|
||||||
*cache_item= cache;
|
*cache_item= cache;
|
||||||
return cache_item;
|
return cache_item;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user