Hello, can we get an estimated date for the next release with this correction ? Else we have a lot of SQLs to change in our existing code and management is putting pressure on our team.
Thanks & Regards,
Joanne
Joanne Seneque
added a comment - Hello, can we get an estimated date for the next release with this correction ? Else we have a lot of SQLs to change in our existing code and management is putting pressure on our team.
Thanks & Regards,
Joanne
Yes, you can see the estimated date for the next release at jira.mariadb.org. At the moment it shows
MariaDB Server : 10.5.11
2021-07-30
Note, that we cannot say whether the fix for this regression will be in 10.5.11, but it's very likely
Sergei Golubchik
added a comment - Yes, you can see the estimated date for the next release at jira.mariadb.org. At the moment it shows
MariaDB Server : 10.5.11
2021-07-30
Note, that we cannot say whether the fix for this regression will be in 10.5.11, but it's very likely
SET @a=5, @b = (SELECT id FROM t1 WHERE id = @a), @c = (SELECT id FROM t1 WHERE id = @a);
select @a, @b, @c;
@a @b @c
5 NULL NULL
INSERT INTO t1 VALUES (5);
SET @a=5, @b = (SELECT id FROM t1 WHERE id = @a), @c = (SELECT id FROM t1 WHERE id = @a);
select @a, @b, @c;
@a @b @c
5 5 5
drop table t1;
Oleksandr Byelkin
added a comment - It looks like it was fixed:
CREATE TABLE t1 (id int);
INSERT INTO t1 VALUES (1),(2);
SET @a=5, @b = (SELECT id FROM t1 WHERE id = @a), @c = (SELECT id FROM t1 WHERE id = @a);
select @a, @b, @c;
@a @b @c
5 NULL NULL
INSERT INTO t1 VALUES (5);
SET @a=5, @b = (SELECT id FROM t1 WHERE id = @a), @c = (SELECT id FROM t1 WHERE id = @a);
select @a, @b, @c;
@a @b @c
5 5 5
drop table t1;
MDEV-23886 Reusing CTE inside a function fails with table doesn't exist
In the code existed just before this patch binding of a table reference to
Elena Stepanova
added a comment - The failure disappeared after this patch:
commit 675716e1cb34e29f7d3f46aac9a93adf02ac0851
Author: Igor Babaev
Date: Tue May 25 17:13:17 2021 -0700
MDEV-23886 Reusing CTE inside a function fails with table doesn't exist
In the code existed just before this patch binding of a table reference to
People
Unassigned
Joanne Seneque
Votes:
0Vote for this issue
Watchers:
5Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":831.6000003814697,"ttfb":198.90000009536743,"pageVisibility":"visible","entityId":99424,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"7283e26f-702f-422f-877c-7205898138fb","navigationType":0,"readyForUser":952.6000003814697,"redirectCount":0,"resourceLoadedEnd":1016.4000000953674,"resourceLoadedStart":229.10000038146973,"resourceTiming":[{"duration":33.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":229.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":262.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":33.90000009536743,"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":229.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":263.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":115.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":229.7000002861023,"connectEnd":229.7000002861023,"connectStart":229.7000002861023,"domainLookupEnd":229.7000002861023,"domainLookupStart":229.7000002861023,"fetchStart":229.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":229.7000002861023,"responseEnd":345,"responseStart":345,"secureConnectionStart":229.7000002861023},{"duration":155.2000002861023,"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":229.90000009536743,"connectEnd":229.90000009536743,"connectStart":229.90000009536743,"domainLookupEnd":229.90000009536743,"domainLookupStart":229.90000009536743,"fetchStart":229.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":229.90000009536743,"responseEnd":385.1000003814697,"responseStart":385.1000003814697,"secureConnectionStart":229.90000009536743},{"duration":159.40000009536743,"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":230,"connectEnd":230,"connectStart":230,"domainLookupEnd":230,"domainLookupStart":230,"fetchStart":230,"redirectEnd":0,"redirectStart":0,"requestStart":230,"responseEnd":389.40000009536743,"responseStart":389.40000009536743,"secureConnectionStart":230},{"duration":159.59999990463257,"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":230.30000019073486,"connectEnd":230.30000019073486,"connectStart":230.30000019073486,"domainLookupEnd":230.30000019073486,"domainLookupStart":230.30000019073486,"fetchStart":230.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":230.30000019073486,"responseEnd":389.90000009536743,"responseStart":389.90000009536743,"secureConnectionStart":230.30000019073486},{"duration":159.80000019073486,"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":230.5,"connectEnd":230.5,"connectStart":230.5,"domainLookupEnd":230.5,"domainLookupStart":230.5,"fetchStart":230.5,"redirectEnd":0,"redirectStart":0,"requestStart":230.5,"responseEnd":390.30000019073486,"responseStart":390.30000019073486,"secureConnectionStart":230.5},{"duration":259.19999980926514,"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":230.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":489.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":159.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":230.90000009536743,"connectEnd":230.90000009536743,"connectStart":230.90000009536743,"domainLookupEnd":230.90000009536743,"domainLookupStart":230.90000009536743,"fetchStart":230.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":230.90000009536743,"responseEnd":390.80000019073486,"responseStart":390.80000019073486,"secureConnectionStart":230.90000009536743},{"duration":259,"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":231,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":490,"responseStart":0,"secureConnectionStart":0},{"duration":160.2999997138977,"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":231.2000002861023,"connectEnd":231.2000002861023,"connectStart":231.2000002861023,"domainLookupEnd":231.2000002861023,"domainLookupStart":231.2000002861023,"fetchStart":231.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":231.2000002861023,"responseEnd":391.5,"responseStart":391.5,"secureConnectionStart":231.2000002861023},{"duration":640,"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":232.10000038146973,"connectEnd":232.10000038146973,"connectStart":232.10000038146973,"domainLookupEnd":232.10000038146973,"domainLookupStart":232.10000038146973,"fetchStart":232.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":232.10000038146973,"responseEnd":872.1000003814697,"responseStart":872,"secureConnectionStart":232.10000038146973},{"duration":637,"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":236.7000002861023,"connectEnd":236.7000002861023,"connectStart":236.7000002861023,"domainLookupEnd":236.7000002861023,"domainLookupStart":236.7000002861023,"fetchStart":236.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":236.7000002861023,"responseEnd":873.7000002861023,"responseStart":873.6000003814697,"secureConnectionStart":236.7000002861023},{"duration":61.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":504.30000019073486,"connectEnd":504.30000019073486,"connectStart":504.30000019073486,"domainLookupEnd":504.30000019073486,"domainLookupStart":504.30000019073486,"fetchStart":504.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":504.30000019073486,"responseEnd":566.2000002861023,"responseStart":566.1000003814697,"secureConnectionStart":504.30000019073486},{"duration":116.59999990463257,"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&whisper-enabled=true","startTime":767.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":767.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":883.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":237,"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&whisper-enabled=true","startTime":768.2000002861023,"connectEnd":768.2000002861023,"connectStart":768.2000002861023,"domainLookupEnd":768.2000002861023,"domainLookupStart":768.2000002861023,"fetchStart":768.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":768.2000002861023,"responseEnd":1005.2000002861023,"responseStart":1005.2000002861023,"secureConnectionStart":768.2000002861023},{"duration":247.7999997138977,"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&whisper-enabled=true","startTime":768.6000003814697,"connectEnd":768.6000003814697,"connectStart":768.6000003814697,"domainLookupEnd":768.6000003814697,"domainLookupStart":768.6000003814697,"fetchStart":768.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":768.6000003814697,"responseEnd":1016.4000000953674,"responseStart":1016.4000000953674,"secureConnectionStart":768.6000003814697},{"duration":278.7000002861023,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":825.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":825.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1104.2000002861023,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":13,"responseStart":200,"responseEnd":227,"domLoading":227,"domInteractive":1039,"domContentLoadedEventStart":1039,"domContentLoadedEventEnd":1101,"domComplete":1218,"loadEventStart":1218,"loadEventEnd":1219,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":996.9000000953674},{"name":"bigPipe.sidebar-id.end","time":997.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":998},{"name":"bigPipe.activity-panel-pipe-id.end","time":1002.3000001907349},{"name":"activityTabFullyLoaded","time":1118.6000003814697}],"measures":[],"correlationId":"30732e85c51b54","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":123,"dbReadsTimeInMs":21,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thanks for the report!
Repeatable on 10.5, not on earlier versions.
Regression started from 10.5.7, after this merge https://github.com/MariaDB/server/commit/5ff7e68c7e
10.5 d44a10f4dd3567fd84a7f
Version: '10.5.10-MariaDB-debug-log'
mariadbd: /10.5/sql/sql_select.cc:4225: bool JOIN::save_explain_data(Explain_query*, bool, bool, bool, bool): Assertion `select_lex->select_number == (0x7fffffff * 2U + 1U) || select_lex->select_number == 0x7fffffff || !output || !output->get_select(select_lex->select_number) || output->get_select(select_lex->select_number)->select_lex == select_lex' failed.
210505 15:25:25 [ERROR] mysqld got signal 6 ;
??:0(__restore_rt)[0x7eff968f0730]
linux/raise.c:51(__GI_raise)[0x7eff9642c7bb]
stdlib/abort.c:81(__GI_abort)[0x7eff96417535]
intl/loadmsgcat.c:1177(_nl_load_domain)[0x7eff9641740f]
??:0(__assert_fail)[0x7eff96425102]
sql/sql_select.cc:4227(JOIN::save_explain_data(Explain_query*, bool, bool, bool, bool))[0x55cd79273e3c]
sql/sql_select.cc:1609(JOIN::build_explain())[0x55cd79257ba1]
sql/sql_select.cc:1670(JOIN::optimize())[0x55cd792586c7]
sql/item_subselect.cc:3995(subselect_single_select_engine::exec())[0x55cd79bd0c6f]
sql/item_subselect.cc:834(Item_subselect::exec())[0x55cd79bad795]
sql/item_subselect.cc:1441(Item_singlerow_subselect::val_int())[0x55cd79bb31c5]
sql/item_func.cc:5120(Item_func_set_user_var::check(bool))[0x55cd79b040c7]
sql/set_var.cc:895(set_var_user::check(THD*))[0x55cd78f03aff]
sql/set_var.cc:739(sql_set_variables(THD*, List<set_var_base>*, bool))[0x55cd78f02aa0]
sql/sql_parse.cc:5099(mysql_execute_command(THD*))[0x55cd791ae6d7]
sql/sql_parse.cc:8099(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55cd791c2460]
sql/sql_parse.cc:1894(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55cd791988d9]
sql/sql_parse.cc:1370(do_command(THD*))[0x55cd791951e5]
sql/sql_connect.cc:1410(do_handle_one_connection(CONNECT*, bool))[0x55cd795c7b76]
sql/sql_connect.cc:1314(handle_one_connection)[0x55cd795c74d3]
perfschema/pfs.cc:2203(pfs_spawn_thread)[0x55cd7a2927aa]
nptl/pthread_create.c:487(start_thread)[0x7eff968e5fa3]
x86_64/clone.S:97(clone)[0x7eff964ee4cf]
Query (0x62b0000382a8): SET @a=5, @b = (SELECT id FROM t1 WHERE id = @a), @c = (SELECT id FROM t1 WHERE id = @a)
Version: '10.5.9-MariaDB'
210505 15:20:57 [ERROR] mysqld got signal 11 ;
??:0(__restore_rt)[0x7f9d71922730]
sql/sql_analyze_stmt.h:139(JOIN::exec())[0x55a49b1f8a93]
sql/item_subselect.cc:4001(subselect_single_select_engine::exec())[0x55a49b4540f5]
sql/item_subselect.cc:787(Item_subselect::exec())[0x55a49b45286a]
sql/item_subselect.cc:1375(Item_singlerow_subselect::val_int())[0x55a49b4530be]
sql/item_func.cc:5090(Item_func_set_user_var::check(bool))[0x55a49b41329c]
sql/set_var.cc:895(set_var_user::check(THD*))[0x55a49b0df39c]
sql/set_var.cc:739(sql_set_variables(THD*, List<set_var_base>*, bool))[0x55a49b0e1159]
sql/sql_parse.cc:5068(mysql_execute_command(THD*))[0x55a49b19c80a]
sql/sql_parse.cc:8063(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55a49b19f169]
sql/sql_audit.h:169(mysql_audit_general)[0x55a49b1a1215]
sql/sql_parse.cc:1375(do_command(THD*))[0x55a49b1a2bdb]
sql/sql_connect.cc:1410(do_handle_one_connection(CONNECT*, bool))[0x55a49b28dbc2]
sql/sql_connect.cc:1318(handle_one_connection)[0x55a49b28de84]
perfschema/pfs.cc:2204(pfs_spawn_thread)[0x55a49b61128d]
nptl/pthread_create.c:487(start_thread)[0x7f9d71917fa3]
x86_64/clone.S:97(clone)[0x7f9d714f14cf]
Query (0x7f9c68011de0): SET @a=5, @b = (SELECT id FROM t1 WHERE id = @a), @c = (SELECT id FROM t1 WHERE id = @a)