summaryrefslogtreecommitdiff
path: root/mysql-test/r/in_datetime_241.result
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-05-02 15:22:47 +0200
committerSergei Golubchik <sergii@pisem.net>2012-05-02 15:22:47 +0200
commitbeec2a2b1d79eb7f689ee083fe68d08682b14300 (patch)
tree27b220f4a99673f17901d874f138f9bcde91f061 /mysql-test/r/in_datetime_241.result
parent6920491587b9ef4c1e46b0401038244c3bb64c7a (diff)
downloadmariadb-git-beec2a2b1d79eb7f689ee083fe68d08682b14300.tar.gz
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.
Diffstat (limited to 'mysql-test/r/in_datetime_241.result')
-rw-r--r--mysql-test/r/in_datetime_241.result5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/r/in_datetime_241.result b/mysql-test/r/in_datetime_241.result
new file mode 100644
index 00000000000..2c5b4bd8db1
--- /dev/null
+++ b/mysql-test/r/in_datetime_241.result
@@ -0,0 +1,5 @@
+DROP TABLE IF EXISTS t1;
+CREATE TABLE t1 ( a DATE );
+SELECT * FROM t1 WHERE ( SELECT a FROM t1 ) IN ('2012-04-25','2012-04-26');
+a
+DROP TABLE t1;