SELECT NULLIF( CAST( 1012.5 AS DATE ), 1 );
|
10.4 a65d3b2c
|
mysqld: /data/src/10.4/sql/sql_type.cc:978: Datetime_truncation_not_needed::Datetime_truncation_not_needed(THD*, Item*, date_conv_mode_t): Assertion `!is_valid_datetime() || fraction_remainder(((item->decimals) < (6) ? (item->decimals) : (6))) == 0' failed.
|
190422 15:28:36 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f7053b2dee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000555bba99c8eb in Datetime_truncation_not_needed::Datetime_truncation_not_needed (this=0x7f704dca5650, thd=0x7f703c000b00, item=0x7f703c015d48, mode=...) at /data/src/10.4/sql/sql_type.cc:976
|
#9 0x0000555bbaa47df7 in Datetime_truncation_not_needed::Datetime_truncation_not_needed (this=0x7f704dca5650, thd=0x7f703c000b00, item=0x7f703c015d48, mode=...) at /data/src/10.4/sql/sql_type.h:2295
|
#10 0x0000555bbab1d1ee in Item_func_nullif::date_op (this=0x7f703c015f28, thd=0x7f703c000b00, ltime=0x7f704dca5aa8, fuzzydate=...) at /data/src/10.4/sql/item_cmpfunc.cc:2897
|
#11 0x0000555bba9a5831 in Type_handler_temporal_result::Item_func_hybrid_field_type_get_date (this=0x555bbbe2f3b8 <type_handler_newdate>, thd=0x7f703c000b00, item=0x7f703c015f28, warn=0x7f704dca5700, ltime=0x7f704dca5aa8, fuzzydate=...) at /data/src/10.4/sql/sql_type.cc:4800
|
#12 0x0000555bba9a49ae in Type_handler::Item_func_hybrid_field_type_get_date_with_warn (this=0x555bbbe2f3b8 <type_handler_newdate>, thd=0x7f703c000b00, item=0x7f703c015f28, ltime=0x7f704dca5aa8, mode=...) at /data/src/10.4/sql/sql_type.cc:4421
|
#13 0x0000555bba781573 in Item_func_hybrid_field_type::get_date (this=0x7f703c015f28, thd=0x7f703c000b00, to=0x7f704dca5aa8, mode=...) at /data/src/10.4/sql/item_func.h:775
|
#14 0x0000555bba9a9de1 in Type_handler::Item_send_date (this=0x555bbbe2f3b8 <type_handler_newdate>, item=0x7f703c015f28, protocol=0x7f703c0010c8, buf=0x7f704dca5aa0) at /data/src/10.4/sql/sql_type.cc:6738
|
#15 0x0000555bba9b5eb6 in Type_handler_temporal_with_date::Item_send (this=0x555bbbe2f3b8 <type_handler_newdate>, item=0x7f703c015f28, protocol=0x7f703c0010c8, buf=0x7f704dca5aa0) at /data/src/10.4/sql/sql_type.h:5301
|
#16 0x0000555bba684092 in Item::send (this=0x7f703c015f28, protocol=0x7f703c0010c8, buffer=0x7f704dca5aa0) at /data/src/10.4/sql/item.h:1035
|
#17 0x0000555bba67ee32 in Protocol::send_result_set_row (this=0x7f703c0010c8, row_items=0x7f703c015948) at /data/src/10.4/sql/protocol.cc:1024
|
#18 0x0000555bba72cd08 in select_send::send_data (this=0x7f703c016a98, items=...) at /data/src/10.4/sql/sql_class.cc:3006
|
#19 0x0000555bba7ebe93 in JOIN::exec_inner (this=0x7f703c016ac0) at /data/src/10.4/sql/sql_select.cc:4256
|
#20 0x0000555bba7eb7ae in JOIN::exec (this=0x7f703c016ac0) at /data/src/10.4/sql/sql_select.cc:4170
|
#21 0x0000555bba7ece60 in mysql_select (thd=0x7f703c000b00, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f703c016a98, unit=0x7f703c004a30, select_lex=0x7f703c015800) at /data/src/10.4/sql/sql_select.cc:4602
|
#22 0x0000555bba7dd3f4 in handle_select (thd=0x7f703c000b00, lex=0x7f703c004968, result=0x7f703c016a98, setup_tables_done_option=0) at /data/src/10.4/sql/sql_select.cc:424
|
#23 0x0000555bba7a6c8d in execute_sqlcom_select (thd=0x7f703c000b00, all_tables=0x0) at /data/src/10.4/sql/sql_parse.cc:6602
|
#24 0x0000555bba79c263 in mysql_execute_command (thd=0x7f703c000b00) at /data/src/10.4/sql/sql_parse.cc:3891
|
#25 0x0000555bba7aaa13 in mysql_parse (thd=0x7f703c000b00, rawbuf=0x7f703c015740 "SELECT NULLIF( CAST( 1012.5 AS DATE ), 1 )", length=42, parser_state=0x7f704dca7180, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8154
|
#26 0x0000555bba79646a in dispatch_command (command=COM_QUERY, thd=0x7f703c000b00, packet=0x7f703c00a8a1 "", packet_length=42, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1832
|
#27 0x0000555bba794c50 in do_command (thd=0x7f703c000b00) at /data/src/10.4/sql/sql_parse.cc:1365
|
#28 0x0000555bba90d033 in do_handle_one_connection (connect=0x555bbe8e65b0) at /data/src/10.4/sql/sql_connect.cc:1398
|
#29 0x0000555bba90cda4 in handle_one_connection (arg=0x555bbe8e65b0) at /data/src/10.4/sql/sql_connect.cc:1301
|
#30 0x0000555bbad312f5 in pfs_spawn_thread (arg=0x555bbe9d8980) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#31 0x00007f7055c22494 in start_thread (arg=0x7f704dca8700) at pthread_create.c:333
|
#32 0x00007f7053bea93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Non-debug build doesn't crash, just produces a number of warning/notes:
SELECT NULLIF( CAST( 1012.5 AS DATE ), 1 );
|
NULLIF( CAST( 1012.5 AS DATE ), 1 )
|
2000-10-12
|
Warnings:
|
Note 1292 Truncated incorrect date value: '1012.5'
|
Warning 1292 Truncated incorrect datetime value: '1'
|
Note 1292 Truncated incorrect date value: '1012.5'
|
10.3 doesn't crash and produces only one warning:
10.3 765ae6e8
|
SELECT NULLIF( CAST( 1012.5 AS DATE ), 1 );
|
NULLIF( CAST( 1012.5 AS DATE ), 1 )
|
2000-10-12
|
Warnings:
|
Warning 1292 Incorrect datetime value: '1'
|
- relates to
-
MDEV-29149
Assertion `!is_valid_datetime() || fraction_remainder(((item->decimals) < (6) ? (item->decimals) : (6))) == 0' failed in Datetime_truncation_not_needed::Datetime_truncation_not_needed
-
-
Closed
{"report":{"fcp":1795.8000001907349,"ttfb":918.6999998092651,"pageVisibility":"visible","entityId":75519,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"975aedc7-0968-4e14-8f77-6af4532ce81d","navigationType":0,"readyForUser":1874.3000001907349,"redirectCount":0,"resourceLoadedEnd":2573.5999999046326,"resourceLoadedStart":924.1999998092651,"resourceTiming":[{"duration":360.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":924.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":924.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1284.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":366.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":924.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":924.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1291.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":420.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":924.5999999046326,"connectEnd":924.5999999046326,"connectStart":924.5999999046326,"domainLookupEnd":924.5999999046326,"domainLookupStart":924.5999999046326,"fetchStart":924.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":924.5999999046326,"responseEnd":1345.5,"responseStart":1345.5,"secureConnectionStart":924.5999999046326},{"duration":485.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":924.8000001907349,"connectEnd":924.8000001907349,"connectStart":924.8000001907349,"domainLookupEnd":924.8000001907349,"domainLookupStart":924.8000001907349,"fetchStart":924.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":924.8000001907349,"responseEnd":1410.0999999046326,"responseStart":1410.0999999046326,"secureConnectionStart":924.8000001907349},{"duration":489,"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":925.0999999046326,"connectEnd":925.0999999046326,"connectStart":925.0999999046326,"domainLookupEnd":925.0999999046326,"domainLookupStart":925.0999999046326,"fetchStart":925.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":925.0999999046326,"responseEnd":1414.0999999046326,"responseStart":1414.0999999046326,"secureConnectionStart":925.0999999046326},{"duration":489.30000019073486,"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":925.1999998092651,"connectEnd":925.1999998092651,"connectStart":925.1999998092651,"domainLookupEnd":925.1999998092651,"domainLookupStart":925.1999998092651,"fetchStart":925.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":925.1999998092651,"responseEnd":1414.5,"responseStart":1414.5,"secureConnectionStart":925.1999998092651},{"duration":489.40000009536743,"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":925.4000000953674,"connectEnd":925.4000000953674,"connectStart":925.4000000953674,"domainLookupEnd":925.4000000953674,"domainLookupStart":925.4000000953674,"fetchStart":925.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":925.4000000953674,"responseEnd":1414.8000001907349,"responseStart":1414.8000001907349,"secureConnectionStart":925.4000000953674},{"duration":562.2000002861023,"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":925.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":925.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1487.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":489.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":925.6999998092651,"connectEnd":925.6999998092651,"connectStart":925.6999998092651,"domainLookupEnd":925.6999998092651,"domainLookupStart":925.6999998092651,"fetchStart":925.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":925.6999998092651,"responseEnd":1415.3000001907349,"responseStart":1415.3000001907349,"secureConnectionStart":925.6999998092651},{"duration":561.9000000953674,"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":926,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":926,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1487.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":489.90000009536743,"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":926,"connectEnd":926,"connectStart":926,"domainLookupEnd":926,"domainLookupStart":926,"fetchStart":926,"redirectEnd":0,"redirectStart":0,"requestStart":926,"responseEnd":1415.9000000953674,"responseStart":1415.9000000953674,"secureConnectionStart":926},{"duration":1140.9000000953674,"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":926.9000000953674,"connectEnd":926.9000000953674,"connectStart":926.9000000953674,"domainLookupEnd":926.9000000953674,"domainLookupStart":926.9000000953674,"fetchStart":926.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":926.9000000953674,"responseEnd":2067.800000190735,"responseStart":2067.800000190735,"secureConnectionStart":926.9000000953674},{"duration":1646.6999998092651,"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":926.9000000953674,"connectEnd":926.9000000953674,"connectStart":926.9000000953674,"domainLookupEnd":926.9000000953674,"domainLookupStart":926.9000000953674,"fetchStart":926.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":926.9000000953674,"responseEnd":2573.5999999046326,"responseStart":2573.5999999046326,"secureConnectionStart":926.9000000953674},{"duration":586.7999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1499.4000000953674,"connectEnd":1499.4000000953674,"connectStart":1499.4000000953674,"domainLookupEnd":1499.4000000953674,"domainLookupStart":1499.4000000953674,"fetchStart":1499.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1499.4000000953674,"responseEnd":2086.199999809265,"responseStart":2086.199999809265,"secureConnectionStart":1499.4000000953674},{"duration":799,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1789.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1789.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2588.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":761,"responseStart":919,"responseEnd":922,"domLoading":922,"domInteractive":2594,"domContentLoadedEventStart":2594,"domContentLoadedEventEnd":2635,"domComplete":3553,"loadEventStart":3554,"loadEventEnd":3555,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2577.5999999046326},{"name":"bigPipe.sidebar-id.end","time":2578.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":2578.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":2581},{"name":"activityTabFullyLoaded","time":2641.199999809265}],"measures":[],"correlationId":"2a40ffed05e09e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":12,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}