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;
|
10.0/sql/item_timefunc.cc:1516: 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.
|
131215 2:13:32 [ERROR] mysqld got signal 6 ;
|
#6 0x00007fc0187c1621 in *__GI___assert_fail (assertion=0x10b5c08 "cached_field_type == MYSQL_TYPE_STRING || ltime.time_type == MYSQL_TIMESTAMP_NONE || mysql_type_to_time_type(cached_field_type) == ltime.time_type", file=<optimized out>, line=1516, function=0x10b6e20 "virtual String* Item_temporal_hybrid_func::val_str_ascii(String*)") at assert.c:81
|
#7 0x0000000000904fb3 in Item_temporal_hybrid_func::val_str_ascii (this=0x7fc00fb575b0, str=0x7fc00fb57758) at 10.0/sql/item_timefunc.cc:1514
|
#8 0x00000000008cc3f4 in Item_func::val_str_from_val_str_ascii (this=0x7fc00fb575b0, str=0x7fc00fb57758, str2=0x7fc00fb57680) at 10.0/sql/item_strfunc.cc:88
|
#9 0x000000000090b34e in Item_temporal_hybrid_func::val_str (this=0x7fc00fb575b0, str=0x7fc00fb57758) at 10.0/sql/item_timefunc.h:553
|
#10 0x0000000000882cf4 in Item_func_if::str_op (this=0x7fc00fb57740, str=0x7fc00fb57758) at 10.0/sql/item_cmpfunc.cc:2729
|
#11 0x00000000008a99d0 in Item_func_hybrid_result_type::val_str (this=0x7fc00fb57740, str=0x7fc019fd2f50) at 10.0/sql/item_func.cc:940
|
#12 0x000000000086a019 in Item::send (this=0x7fc00fb57740, protocol=0x7fc011bec5f8, buffer=0x7fc019fd2f50) at 10.0/sql/item.cc:6464
|
#13 0x00000000005bfbdc in Protocol::send_result_set_row (this=0x7fc011bec5f8, row_items=0x7fc011bf0528) at 10.0/sql/protocol.cc:900
|
#14 0x000000000062b3bd in select_send::send_data (this=0x7fc00fb57f68, items=...) at 10.0/sql/sql_class.cc:2549
|
#15 0x00000000006c5503 in end_send (join=0x7fc00fb57f88, join_tab=0x0, end_of_records=false) at 10.0/sql/sql_select.cc:18447
|
#16 0x00000000006c2201 in do_select (join=0x7fc00fb57f88, fields=0x7fc011bf0528, table=0x0, procedure=0x0) at 10.0/sql/sql_select.cc:16952
|
#17 0x000000000069fec2 in JOIN::exec_inner (this=0x7fc00fb57f88) at 10.0/sql/sql_select.cc:3064
|
#18 0x000000000069d3e6 in JOIN::exec (this=0x7fc00fb57f88) at 10.0/sql/sql_select.cc:2354
|
#19 0x00000000006a0755 in mysql_select (thd=0x7fc011bec070, rref_pointer_array=0x7fc011bf0688, tables=0x7fc00fb578e8, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fc00fb57f68, unit=0x7fc011befd38, select_lex=0x7fc011bf0418) at 10.0/sql/sql_select.cc:3292
|
#20 0x0000000000696e43 in handle_select (thd=0x7fc011bec070, lex=0x7fc011befc78, result=0x7fc00fb57f68, setup_tables_done_option=0) at 10.0/sql/sql_select.cc:371
|
#21 0x000000000066bfa8 in execute_sqlcom_select (thd=0x7fc011bec070, all_tables=0x7fc00fb578e8) at 10.0/sql/sql_parse.cc:5221
|
#22 0x0000000000664468 in mysql_execute_command (thd=0x7fc011bec070) at 10.0/sql/sql_parse.cc:2552
|
#23 0x000000000066e728 in mysql_parse (thd=0x7fc011bec070, rawbuf=0x7fc00fb57088 "SELECT IF( 1, ADDDATE( IFNULL( a, b ), 0 ), 1 ) FROM t1", length=55, parser_state=0x7fc019fd4630) at 10.0/sql/sql_parse.cc:6365
|
#24 0x000000000066166a in dispatch_command (command=COM_QUERY, thd=0x7fc011bec070, packet=0x7fc01273d071 "", packet_length=55) at 10.0/sql/sql_parse.cc:1296
|
#25 0x0000000000660a0c in do_command (thd=0x7fc011bec070) at 10.0/sql/sql_parse.cc:993
|
#26 0x0000000000779955 in do_handle_one_connection (thd_arg=0x7fc011bec070) at 10.0/sql/sql_connect.cc:1379
|
#27 0x00000000007796a8 in handle_one_connection (arg=0x7fc011bec070) at 10.0/sql/sql_connect.cc:1293
|
#28 0x0000000000a9aac5 in pfs_spawn_thread (arg=0x7fc012ff5df0) at 10.0/storage/perfschema/pfs.cc:1853
|
#29 0x00007fc019d21b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#30 0x00007fc018870a7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
revision-id: bar@mnogosearch.org-20131213131810-eejuqpcvgcd8x41b
|
revno: 3945
|
branch-nick: 10.0
|
{"report":{"fcp":879.3000001907349,"ttfb":215.19999980926514,"pageVisibility":"visible","entityId":28226,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"bb639fbb-2e98-4559-896e-ff8e04750362","navigationType":0,"readyForUser":966.6999998092651,"redirectCount":0,"resourceLoadedEnd":1002.6999998092651,"resourceLoadedStart":220.69999980926514,"resourceTiming":[{"duration":9.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":220.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":230,"responseStart":0,"secureConnectionStart":0},{"duration":9.40000057220459,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":220.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":230.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":76.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":221.10000038146973,"connectEnd":221.10000038146973,"connectStart":221.10000038146973,"domainLookupEnd":221.10000038146973,"domainLookupStart":221.10000038146973,"fetchStart":221.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":221.10000038146973,"responseEnd":297.6000003814697,"responseStart":297.6000003814697,"secureConnectionStart":221.10000038146973},{"duration":234.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":221.30000019073486,"connectEnd":221.30000019073486,"connectStart":221.30000019073486,"domainLookupEnd":221.30000019073486,"domainLookupStart":221.30000019073486,"fetchStart":221.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":221.30000019073486,"responseEnd":455.6000003814697,"responseStart":455.6000003814697,"secureConnectionStart":221.30000019073486},{"duration":238.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":221.5,"connectEnd":221.5,"connectStart":221.5,"domainLookupEnd":221.5,"domainLookupStart":221.5,"fetchStart":221.5,"redirectEnd":0,"redirectStart":0,"requestStart":221.5,"responseEnd":460,"responseStart":460,"secureConnectionStart":221.5},{"duration":238.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":221.69999980926514,"connectEnd":221.69999980926514,"connectStart":221.69999980926514,"domainLookupEnd":221.69999980926514,"domainLookupStart":221.69999980926514,"fetchStart":221.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":221.69999980926514,"responseEnd":460.5,"responseStart":460.5,"secureConnectionStart":221.69999980926514},{"duration":239,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":222,"connectEnd":222,"connectStart":222,"domainLookupEnd":222,"domainLookupStart":222,"fetchStart":222,"redirectEnd":0,"redirectStart":0,"requestStart":222,"responseEnd":461,"responseStart":461,"secureConnectionStart":222},{"duration":252.5999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":222.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":474.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":239.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":222.30000019073486,"connectEnd":222.30000019073486,"connectStart":222.30000019073486,"domainLookupEnd":222.30000019073486,"domainLookupStart":222.30000019073486,"fetchStart":222.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":222.30000019073486,"responseEnd":461.3999996185303,"responseStart":461.3999996185303,"secureConnectionStart":222.30000019073486},{"duration":252.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":222.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":475,"responseStart":0,"secureConnectionStart":0},{"duration":239.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":222.60000038146973,"connectEnd":222.60000038146973,"connectStart":222.60000038146973,"domainLookupEnd":222.60000038146973,"domainLookupStart":222.60000038146973,"fetchStart":222.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":222.60000038146973,"responseEnd":462,"responseStart":462,"secureConnectionStart":222.60000038146973},{"duration":396.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":228.69999980926514,"connectEnd":228.69999980926514,"connectStart":228.69999980926514,"domainLookupEnd":228.69999980926514,"domainLookupStart":228.69999980926514,"fetchStart":228.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":228.69999980926514,"responseEnd":625,"responseStart":625,"secureConnectionStart":228.69999980926514},{"duration":637.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":228.80000019073486,"connectEnd":228.80000019073486,"connectStart":228.80000019073486,"domainLookupEnd":228.80000019073486,"domainLookupStart":228.80000019073486,"fetchStart":228.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":228.80000019073486,"responseEnd":866.3999996185303,"responseStart":866.3999996185303,"secureConnectionStart":228.80000019073486},{"duration":137.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":487.8999996185303,"connectEnd":487.8999996185303,"connectStart":487.8999996185303,"domainLookupEnd":487.8999996185303,"domainLookupStart":487.8999996185303,"fetchStart":487.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":487.8999996185303,"responseEnd":625.6999998092651,"responseStart":625.6999998092651,"secureConnectionStart":487.8999996185303},{"duration":99.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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":770.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":770.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":869.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":226.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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":771.1999998092651,"connectEnd":771.1999998092651,"connectStart":771.1999998092651,"domainLookupEnd":771.1999998092651,"domainLookupStart":771.1999998092651,"fetchStart":771.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":771.1999998092651,"responseEnd":997.3999996185303,"responseStart":997.3999996185303,"secureConnectionStart":771.1999998092651},{"duration":165.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":869.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":869.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1035.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":231.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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":771.6000003814697,"connectEnd":771.6000003814697,"connectStart":771.6000003814697,"domainLookupEnd":771.6000003814697,"domainLookupStart":771.6000003814697,"fetchStart":771.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":771.6000003814697,"responseEnd":1002.6999998092651,"responseStart":1002.6999998092651,"secureConnectionStart":771.6000003814697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":51,"responseStart":215,"responseEnd":226,"domLoading":218,"domInteractive":1056,"domContentLoadedEventStart":1056,"domContentLoadedEventEnd":1126,"domComplete":1276,"loadEventStart":1276,"loadEventEnd":1277,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1012.1000003814697},{"name":"bigPipe.sidebar-id.end","time":1013},{"name":"bigPipe.activity-panel-pipe-id.start","time":1013.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1015.8999996185303},{"name":"activityTabFullyLoaded","time":1145.1999998092651}],"measures":[],"correlationId":"8d66e0e645e3e3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The problem is also repeatable with this SQL script:
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a DATETIME, b DATE) ENGINE=MyISAM;
INSERT INTO t1 VALUES (NULL, '2012-12-21');
SELECT CAST(ADDDATE(IFNULL(a,b),0) AS CHAR) FROM t1;