Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
-
5.5
-
None
Description
MDEV-5450 was fixed in 10.x, but it's also reproducible on 5.5 (don't know if it was reproducible at the time when MDEV-5450 was filed).
CREATE TABLE t1 (a DATETIME, b DATE) ENGINE=MyISAM; |
INSERT INTO t1 VALUES (NULL, '2012-12-21'); |
SELECT IF( 1, ADDDATE( IFNULL( a, b ), 0 ), 1 ) FROM t1; |
5.5 8539e4b1b60 |
mysqld: /data/src/5.5/sql/item_timefunc.cc:1502: virtual String* Item_temporal_hybrid_func::val_str_ascii(String*): Assertion `cached_field_type == MYSQL_TYPE_STRING || ltime.time_type == MYSQL_TIMESTAMP_NONE || mysql_type_to_time_type(cached_field_type) == ltime.time_type' failed.
|
180202 2:28:46 [ERROR] mysqld got signal 6 ;
|
 |
#7 0x00007f4b85e28ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000000000864b63 in Item_temporal_hybrid_func::val_str_ascii (this=0x7f4b809485c8, str=0x7f4b80948780) at /data/src/5.5/sql/item_timefunc.cc:1500
|
#9 0x000000000082f9bf in Item_func::val_str_from_val_str_ascii (this=0x7f4b809485c8, str=0x7f4b80948780, str2=0x7f4b809486a0) at /data/src/5.5/sql/item_strfunc.cc:79
|
#10 0x000000000086aefc in Item_temporal_hybrid_func::val_str (this=0x7f4b809485c8, str=0x7f4b80948780) at /data/src/5.5/sql/item_timefunc.h:556
|
#11 0x00000000007e6c19 in Item_func_if::str_op (this=0x7f4b80948768, str=0x7f4b80948780) at /data/src/5.5/sql/item_cmpfunc.cc:2743
|
#12 0x0000000000820a80 in Item_func_hybrid_result_type::str_op_with_null_check (this=0x7f4b80948768, str=0x7f4b80948780) at /data/src/5.5/sql/item_func.h:429
|
#13 0x000000000080b641 in Item_func_hybrid_result_type::val_str (this=0x7f4b80948768, str=0x7f4b8789b260) at /data/src/5.5/sql/item_func.cc:929
|
#14 0x00000000007cd82d in Item::send (this=0x7f4b80948768, protocol=0x7f4b81a64628, buffer=0x7f4b8789b260) at /data/src/5.5/sql/item.cc:6619
|
#15 0x00000000005665b4 in Protocol::send_result_set_row (this=0x7f4b81a64628, row_items=0x7f4b81a67b80) at /data/src/5.5/sql/protocol.cc:903
|
#16 0x00000000005c87c8 in select_send::send_data (this=0x7f4b80948fa0, items=...) at /data/src/5.5/sql/sql_class.cc:2382
|
#17 0x000000000065bc4c in end_send (join=0x7f4b80948fc0, join_tab=0x0, end_of_records=false) at /data/src/5.5/sql/sql_select.cc:18205
|
#18 0x00000000006589a6 in do_select (join=0x7f4b80948fc0, fields=0x7f4b81a67b80, table=0x0, procedure=0x0) at /data/src/5.5/sql/sql_select.cc:16711
|
#19 0x000000000063702e in JOIN::exec (this=0x7f4b80948fc0) at /data/src/5.5/sql/sql_select.cc:2894
|
#20 0x000000000063780a in mysql_select (thd=0x7f4b81a64060, rref_pointer_array=0x7f4b81a67d08, tables=0x7f4b80948918, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f4b80948fa0, unit=0x7f4b81a67388, select_lex=0x7f4b81a67a68) at /data/src/5.5/sql/sql_select.cc:3115
|
#21 0x000000000062dfc8 in handle_select (thd=0x7f4b81a64060, lex=0x7f4b81a672d8, result=0x7f4b80948fa0, setup_tables_done_option=0) at /data/src/5.5/sql/sql_select.cc:323
|
#22 0x000000000060745e in execute_sqlcom_select (thd=0x7f4b81a64060, all_tables=0x7f4b80948918) at /data/src/5.5/sql/sql_parse.cc:4678
|
#23 0x00000000006007df in mysql_execute_command (thd=0x7f4b81a64060) at /data/src/5.5/sql/sql_parse.cc:2224
|
#24 0x000000000060a02a in mysql_parse (thd=0x7f4b81a64060, rawbuf=0x7f4b80948078 "SELECT IF( 1, ADDDATE( IFNULL( a, b ), 0 ), 1 ) FROM t1", length=55, parser_state=0x7f4b8789c640) at /data/src/5.5/sql/sql_parse.cc:5923
|
#25 0x00000000005fdd3f in dispatch_command (command=COM_QUERY, thd=0x7f4b81a64060, packet=0x7f4b8575b061 "", packet_length=55) at /data/src/5.5/sql/sql_parse.cc:1066
|
#26 0x00000000005fcf31 in do_command (thd=0x7f4b81a64060) at /data/src/5.5/sql/sql_parse.cc:793
|
#27 0x000000000070003b in do_handle_one_connection (thd_arg=0x7f4b81a64060) at /data/src/5.5/sql/sql_connect.cc:1268
|
#28 0x00000000006ffdc8 in handle_one_connection (arg=0x7f4b81a64060) at /data/src/5.5/sql/sql_connect.cc:1184
|
#29 0x0000000000a0dbbb in pfs_spawn_thread (arg=0x7f4b82776fc0) at /data/src/5.5/storage/perfschema/pfs.cc:1015
|
#30 0x00007f4b874cf494 in start_thread (arg=0x7f4b8789d700) at pthread_create.c:333
|
#31 0x00007f4b85ee593f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Not reproducible on 10.0.