mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-241 lp:992722 - Server crashes in get_datetime_value
Create an Item_cache based on item's cmp_type, not result_type in subselect_engine. Use result_field in Item_cache_temporal::cache_value(), just like all other Item_cache*::cache_value() do.
This commit is contained in:
9
mysql-test/t/in_datetime_241.test
Normal file
9
mysql-test/t/in_datetime_241.test
Normal file
@ -0,0 +1,9 @@
|
||||
#
|
||||
# MDEV-241 lp:992722 - Server crashes in get_datetime_value
|
||||
#
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
CREATE TABLE t1 ( a DATE );
|
||||
SELECT * FROM t1 WHERE ( SELECT a FROM t1 ) IN ('2012-04-25','2012-04-26');
|
||||
DROP TABLE t1;
|
Reference in New Issue
Block a user