Initially reported in a comment to https://tokutek.atlassian.net/browse/DB-516
--source include/have_innodb.inc
|
CREATE TABLE t1 (d DATE, c VARCHAR(10), KEY(d)) ENGINE=InnoDB;
|
INSERT INTO t1 VALUES ('2008-10-02','2008-10-02');
|
SELECT * FROM t1 WHERE TIMESTAMP(c,'02:04:42') AND d <=> MAKETIME(97,0,7);
|
#6 0x00007f9dea9836f1 in *__GI___assert_fail (assertion=0xdae744 "ltime->day == 0", file=<optimized out>, line=1122, function=0xdaef80 "bool time_to_datetime(MYSQL_TIME*)") at assert.c:81
|
#7 0x000000000070552b in time_to_datetime (ltime=0x7f9dec2a7dc0) at 5.5/sql/sql_time.cc:1122
|
#8 0x00000000007c5afa in Field_temporal::store_time_dec (this=0x7f9ddc0594b0, ltime=0x7f9dec2a8050, dec=0) at 5.5/sql/field.cc:5073
|
#9 0x0000000000808c61 in Item_cache_temporal::save_in_field (this=0x7f9ddc19dc80, field=0x7f9ddc0594b0, no_conversions=true) at 5.5/sql/item.cc:9027
|
#10 0x00000000007f4206 in Item::save_in_field_no_warnings (this=0x7f9ddc19dc80, field=0x7f9ddc0594b0, no_conversions=true) at 5.5/sql/item.cc:1407
|
#11 0x00000000008f0ad6 in get_mm_leaf (param=0x7f9dec2a8cc0, conf_func=0x7f9ddc19cf68, field=0x7f9ddc0594b0, key_part=0x7f9ddc142078, type=Item_func::EQUAL_FUNC, value=0x7f9ddc19dc80) at 5.5/sql/opt_range.cc:7825
|
#12 0x00000000008f01e0 in get_mm_parts (param=0x7f9dec2a8cc0, cond_func=0x7f9ddc19cf68, field=0x7f9ddc0594b0, type=Item_func::EQUAL_FUNC, value=0x7f9ddc19dc80, cmp_type=TIME_RESULT) at 5.5/sql/opt_range.cc:7616
|
#13 0x00000000008ef030 in get_func_mm_tree (param=0x7f9dec2a8cc0, cond_func=0x7f9ddc19cf68, field=0x7f9ddc0594b0, value=0x7f9ddc19dc80, cmp_type=TIME_RESULT, inv=false) at 5.5/sql/opt_range.cc:7282
|
#14 0x00000000008ef245 in get_full_func_mm_tree (param=0x7f9dec2a8cc0, cond_func=0x7f9ddc19cf68, field_item=0x7f9ddc19cb50, value=0x7f9ddc19dc80, inv=false) at 5.5/sql/opt_range.cc:7389
|
#15 0x00000000008effc1 in get_mm_tree (param=0x7f9dec2a8cc0, cond=0x7f9ddc19cf68) at 5.5/sql/opt_range.cc:7584
|
#16 0x00000000008ef467 in get_mm_tree (param=0x7f9dec2a8cc0, cond=0x7f9ddc19d0d8) at 5.5/sql/opt_range.cc:7430
|
#17 0x00000000008e623f in SQL_SELECT::test_quick_select (this=0x7f9ddc16a708, thd=0x7f9de43d4060, keys_to_use=..., prev_tables=0, limit=18446744073709551615, force_quick_range=false, ordered_output=false) at 5.5/sql/opt_range.cc:3101
|
#18 0x0000000000668b32 in get_quick_record_count (thd=0x7f9de43d4060, select=0x7f9ddc16a708, table=0x7f9ddc1e6860, keys=0x7f9ddc19dea0, limit=18446744073709551615) at 5.5/sql/sql_select.cc:3131
|
#19 0x000000000066aa2c in make_join_statistics (join=0x7f9ddc19d2c0, tables_list=..., conds=0x7f9ddc19d0d8, keyuse_array=0x7f9ddc19d5c8) at 5.5/sql/sql_select.cc:3716
|
#20 0x0000000000662046 in JOIN::optimize (this=0x7f9ddc19d2c0) at 5.5/sql/sql_select.cc:1229
|
#21 0x00000000006688af in mysql_select (thd=0x7f9de43d4060, rref_pointer_array=0x7f9de43d7cc8, tables=0x7f9ddc19c2c8, wild_num=1, fields=..., conds=0x7f9ddc19d0d8, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f9ddc19d2a0, unit=0x7f9de43d7380, select_lex=0x7f9de43d7a58) at 5.5/sql/sql_select.cc:3080
|
#22 0x000000000065f411 in handle_select (thd=0x7f9de43d4060, lex=0x7f9de43d72d0, result=0x7f9ddc19d2a0, setup_tables_done_option=0) at 5.5/sql/sql_select.cc:319
|
#23 0x00000000006389c3 in execute_sqlcom_select (thd=0x7f9de43d4060, all_tables=0x7f9ddc19c2c8) at 5.5/sql/sql_parse.cc:4688
|
#24 0x0000000000631ba5 in mysql_execute_command (thd=0x7f9de43d4060) at 5.5/sql/sql_parse.cc:2233
|
#25 0x000000000063b0d2 in mysql_parse (thd=0x7f9de43d4060, rawbuf=0x7f9ddc19c078 "SELECT * FROM t1 WHERE TIMESTAMP(c,'02:04:42') AND d <=> MAKETIME(97,0,7)", length=73, parser_state=0x7f9dec2ac630) at 5.5/sql/sql_parse.cc:5799
|
#26 0x000000000062f11d in dispatch_command (command=COM_QUERY, thd=0x7f9de43d4060, packet=0x7f9de53b8061 "SELECT * FROM t1 WHERE TIMESTAMP(c,'02:04:42') AND d <=> MAKETIME(97,0,7)", packet_length=73) at 5.5/sql/sql_parse.cc:1079
|
#27 0x000000000062e2a9 in do_command (thd=0x7f9de43d4060) at 5.5/sql/sql_parse.cc:793
|
#28 0x00000000007300aa in do_handle_one_connection (thd_arg=0x7f9de43d4060) at 5.5/sql/sql_connect.cc:1266
|
#29 0x000000000072fb69 in handle_one_connection (arg=0x7f9de43d4060) at 5.5/sql/sql_connect.cc:1181
|
#30 0x0000000000b64819 in pfs_spawn_thread (arg=0x7f9de53be480) at 5.5/storage/perfschema/pfs.cc:1015
|
#31 0x00007f9debee4b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#32 0x00007f9deaa3420d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
Stack trace from:
revision-id: knielsen@knielsen-hq.org-20140813134639-wk760plnzg5wu4x8
|
revno: 4270
|
branch-nick: 5.5
|
- relates to
-
MDEV-5750
Assertion `ltime->year == 0' fails on a query with EXTRACT DAY_MINUTE and TIME column
-
-
Closed
{"report":{"fcp":833.5,"ttfb":243.60000000149012,"pageVisibility":"visible","entityId":43402,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":1,"journeyId":"6370ddc7-2090-40a2-91f9-2984344697ef","navigationType":0,"readyForUser":949.6000000014901,"redirectCount":0,"resourceLoadedEnd":1203.8000000044703,"resourceLoadedStart":249.10000000149012,"resourceTiming":[{"duration":117.39999999850988,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":249.10000000149012,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":249.10000000149012,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":366.5,"responseStart":0,"secureConnectionStart":0},{"duration":117.30000000447035,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":249.39999999850988,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":249.39999999850988,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":366.70000000298023,"responseStart":0,"secureConnectionStart":0},{"duration":126.10000000149012,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":249.60000000149012,"connectEnd":249.60000000149012,"connectStart":249.60000000149012,"domainLookupEnd":249.60000000149012,"domainLookupStart":249.60000000149012,"fetchStart":249.60000000149012,"redirectEnd":0,"redirectStart":0,"requestStart":249.60000000149012,"responseEnd":375.70000000298023,"responseStart":375.6000000014901,"secureConnectionStart":249.60000000149012},{"duration":200.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":249.80000000447035,"connectEnd":249.80000000447035,"connectStart":249.80000000447035,"domainLookupEnd":249.80000000447035,"domainLookupStart":249.80000000447035,"fetchStart":249.80000000447035,"redirectEnd":0,"redirectStart":0,"requestStart":249.80000000447035,"responseEnd":450.30000000447035,"responseStart":450.30000000447035,"secureConnectionStart":249.80000000447035},{"duration":203.70000000298023,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":250.10000000149012,"connectEnd":250.10000000149012,"connectStart":250.10000000149012,"domainLookupEnd":250.10000000149012,"domainLookupStart":250.10000000149012,"fetchStart":250.10000000149012,"redirectEnd":0,"redirectStart":0,"requestStart":250.10000000149012,"responseEnd":453.80000000447035,"responseStart":453.80000000447035,"secureConnectionStart":250.10000000149012},{"duration":204.09999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":250.30000000447035,"connectEnd":250.30000000447035,"connectStart":250.30000000447035,"domainLookupEnd":250.30000000447035,"domainLookupStart":250.30000000447035,"fetchStart":250.30000000447035,"redirectEnd":0,"redirectStart":0,"requestStart":250.30000000447035,"responseEnd":454.3999999985099,"responseStart":454.3999999985099,"secureConnectionStart":250.30000000447035},{"duration":204.39999999850988,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":250.5,"connectEnd":250.5,"connectStart":250.5,"domainLookupEnd":250.5,"domainLookupStart":250.5,"fetchStart":250.5,"redirectEnd":0,"redirectStart":0,"requestStart":250.5,"responseEnd":454.8999999985099,"responseStart":454.8999999985099,"secureConnectionStart":250.5},{"duration":267.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":250.60000000149012,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":250.60000000149012,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.1000000014901,"responseStart":0,"secureConnectionStart":0},{"duration":204.79999999701977,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":250.80000000447035,"connectEnd":250.80000000447035,"connectStart":250.80000000447035,"domainLookupEnd":250.80000000447035,"domainLookupStart":250.80000000447035,"fetchStart":250.80000000447035,"redirectEnd":0,"redirectStart":0,"requestStart":250.80000000447035,"responseEnd":455.6000000014901,"responseStart":455.6000000014901,"secureConnectionStart":250.80000000447035},{"duration":267.40000000596046,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":250.89999999850988,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":250.89999999850988,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.3000000044703,"responseStart":0,"secureConnectionStart":0},{"duration":205.20000000298023,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":251.10000000149012,"connectEnd":251.10000000149012,"connectStart":251.10000000149012,"domainLookupEnd":251.10000000149012,"domainLookupStart":251.10000000149012,"fetchStart":251.10000000149012,"redirectEnd":0,"redirectStart":0,"requestStart":251.10000000149012,"responseEnd":456.30000000447035,"responseStart":456.30000000447035,"secureConnectionStart":251.10000000149012},{"duration":379.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":256.30000000447035,"connectEnd":256.30000000447035,"connectStart":256.30000000447035,"domainLookupEnd":256.30000000447035,"domainLookupStart":256.30000000447035,"fetchStart":256.30000000447035,"redirectEnd":0,"redirectStart":0,"requestStart":256.30000000447035,"responseEnd":635.8000000044703,"responseStart":635.8000000044703,"secureConnectionStart":256.30000000447035},{"duration":935.7000000029802,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":256.3999999985099,"connectEnd":256.3999999985099,"connectStart":256.3999999985099,"domainLookupEnd":256.3999999985099,"domainLookupStart":256.3999999985099,"fetchStart":256.3999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":256.3999999985099,"responseEnd":1192.1000000014901,"responseStart":1192.1000000014901,"secureConnectionStart":256.3999999985099},{"duration":95.89999999850988,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":544.5,"connectEnd":544.5,"connectStart":544.5,"domainLookupEnd":544.5,"domainLookupStart":544.5,"fetchStart":544.5,"redirectEnd":0,"redirectStart":0,"requestStart":544.5,"responseEnd":640.3999999985099,"responseStart":640.3999999985099,"secureConnectionStart":544.5},{"duration":405,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":788.2000000029802,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":788.2000000029802,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1193.2000000029802,"responseStart":0,"secureConnectionStart":0},{"duration":406.6000000014901,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":789.1000000014901,"connectEnd":789.1000000014901,"connectStart":789.1000000014901,"domainLookupEnd":789.1000000014901,"domainLookupStart":789.1000000014901,"fetchStart":789.1000000014901,"redirectEnd":0,"redirectStart":0,"requestStart":789.1000000014901,"responseEnd":1195.7000000029802,"responseStart":1195.7000000029802,"secureConnectionStart":789.1000000014901},{"duration":414.20000000298023,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":789.6000000014901,"connectEnd":789.6000000014901,"connectStart":789.6000000014901,"domainLookupEnd":789.6000000014901,"domainLookupStart":789.6000000014901,"fetchStart":789.6000000014901,"redirectEnd":0,"redirectStart":0,"requestStart":789.6000000014901,"responseEnd":1203.8000000044703,"responseStart":1203.8000000044703,"secureConnectionStart":789.6000000014901}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":85,"responseStart":244,"responseEnd":253,"domLoading":247,"domInteractive":1217,"domContentLoadedEventStart":1217,"domContentLoadedEventEnd":1256,"domComplete":2162,"loadEventStart":2162,"loadEventEnd":2164,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1199},{"name":"bigPipe.sidebar-id.end","time":1200},{"name":"bigPipe.activity-panel-pipe-id.start","time":1200.1000000014901},{"name":"bigPipe.activity-panel-pipe-id.end","time":1202.3999999985099},{"name":"activityTabFullyLoaded","time":1264.3999999985099}],"measures":[],"correlationId":"81f7b0fd793543","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}