Assertion `(Item_result)i != TIME_RESULT' failed with CASE + datetime in maria-5.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Critical
|
Sergei Golubchik |
Bug Description
reported by user.
backtrace:
mysqld: item_cmpfunc.
#8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
#9 0x08211702 in Item_func_
#10 0x081f3683 in Item_func:
#11 0x082112ea in Item_func_
#12 0x08304459 in setup_fields (thd=0xa93c6b8, ref_pointer_
allow_
#13 0x0831860f in JOIN::prepare (this=0xae620aa0, rref_pointer_
order_init=0x0, group_init=0x0, having_init=0x0, proc_param_
#14 0x0831ff54 in mysql_select (thd=0xa93c6b8, rref_pointer_
group=0x0, having=0x0, proc_param=0x0, select_
#15 0x08317deb in handle_select (thd=0xa93c6b8, lex=0xa93ddc0, result=0xae612cd8, setup_tables_
#16 0x082b31b9 in execute_
#17 0x082a9fbd in mysql_execute_
#18 0x082b57f5 in mysql_parse (thd=0xa93c6b8, rawbuf=0xae6125f0 "SELECT CASE t1.f1 when '00:00:00' then NULL END FROM t1", length=55,
found_
#19 0x082a7c3a in dispatch_command (command=COM_QUERY, thd=0xa93c6b8, packet=0xa995549 "SELECT CASE t1.f1 when '00:00:00' then NULL END FROM t1",
packet_
#20 0x082a7095 in do_command (thd=0xa93c6b8) at sql_parse.cc:906
#21 0x082a40fd in handle_
#22 0x00821919 in start_thread () from /lib/libpthread
#23 0x0076acce in clone () from /lib/libc.so.6
test case:
CREATE TABLE t1 ( f1 time) ;
SELECT CASE t1.f1 when '00:00:00' then NULL END FROM t1;
bzr version-info
revision-id: <email address hidden>
date: 2011-08-29 18:16:18 +0300
build-date: 2011-09-02 11:35:31 +0300
revno: 3169
branch-nick: maria-5.3
not repeatable in maria-5.2.
Related branches
Changed in maria: | |
milestone: | none → 5.3 |
assignee: | nobody → Sergei (sergii) |
importance: | Undecided → Critical |
description: | updated |
Changed in maria: | |
status: | New → Confirmed |
Changed in maria: | |
status: | Confirmed → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |