Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
Description
Not repeatable in mysql-5.1
Backtrace:
#5 0x081e33c2 in get_datetime_value (thd=0x977c090, item_arg=0xb6b1aaf4, cache_arg=0x0, warn_item=0x0, is_null=0xb6b1aaf3) at item_cmpfunc.cc:831
#6 0x081d2836 in Item_func_min_max::get_date (this=0xb6904b98, ltime=0xb6b1ab9c, fuzzy_date=1) at item_func.cc:2282
#7 0x0820795e in Item_func::get_arg0_date (this=0xb6904c38, ltime=0xb6b1ab9c, fuzzy_date=1) at item_func.h:142
#8 0x08205c51 in Item_datetime_typecast::get_date (this=0xb6904c38, ltime=0xb6b1ab9c, fuzzy_date=1) at item_timefunc.cc:2321
#9 0x0820363e in Item_temporal_func::val_int (this=0xb6904c38) at item_timefunc.cc:1403
#10 0x081cbae7 in eval_const_cond (cond=0xb6904c38) at item_func.cc:63
#11 0x082e9f92 in remove_eq_conds (thd=0x977c090, cond=0xb6904c38, cond_value=0xb6905e48) at sql_select.cc:9402
#12 0x082e99d8 in optimize_cond (join=0xb6904d30, conds=0xb6904c38, join_list=0x977d53c, cond_value=0xb6905e48) at sql_select.cc:9250
#13 0x082d4564 in JOIN::optimize (this=0xb6904d30) at sql_select.cc:887
#14 0x082da1a5 in mysql_select (thd=0x977c090, rref_pointer_array=0x977d570, tables=0xb69047e0, wild_num=1, fields=..., conds=0xb6904c38, og_num=0,
order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0xb6904d18, unit=0x977d208, select_lex=0x977d478)
at sql_select.cc:2530
#15 0x082d2c16 in handle_select (thd=0x977c090, lex=0x977d1ac, result=0xb6904d18, setup_tables_done_option=0) at sql_select.cc:269
#16 0x0827ad57 in execute_sqlcom_select (thd=0x977c090, all_tables=0xb69047e0) at sql_parse.cc:5129
#17 0x08271c0e in mysql_execute_command (thd=0x977c090) at sql_parse.cc:2278
#18 0x0827cf10 in mysql_parse (thd=0x977c090, rawbuf=0xb6904628 "SELECT * FROM t1 WHERE TIMESTAMP( GREATEST( '2002-08-20' , '0000-00-00 00:00:00' ) )",
length=84, found_semicolon=0xb6b1c210) at sql_parse.cc:6054
#19 0x0826f868 in dispatch_command (command=COM_QUERY, thd=0x977c090,
packet=0x97c1539 "SELECT * FROM t1 WHERE TIMESTAMP( GREATEST( '2002-08-20' , '0000-00-00 00:00:00' ) ) ", packet_length=85) at sql_parse.cc:1249
#20 0x0826ea98 in do_command (thd=0x977c090) at sql_parse.cc:889
#21 0x0826cddd in handle_one_connection (arg=0x977c090) at sql_connect.cc:1136
#22 0x00821919 in start_thread () from /lib/libpthread.so.0
#23 0x0076acce in clone () from /lib/libc.so.6
test case:
CREATE TABLE t1 ( f1 integer );
SELECT * FROM t1 WHERE TIMESTAMP( GREATEST( '2002-08-20' , '0000-00-00 00:00:00' ) ) ;