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":1061.7999999523163,"ttfb":245.10000002384186,"pageVisibility":"visible","entityId":99424,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"984e2127-7d11-459e-93c3-b712a899fc08","navigationType":0,"readyForUser":1144.3999999761581,"redirectCount":0,"resourceLoadedEnd":1269.1000000238419,"resourceLoadedStart":253.5,"resourceTiming":[{"duration":277.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":253.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":253.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":531.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":277.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":253.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":253.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":531.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":286.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":254.10000002384186,"connectEnd":254.10000002384186,"connectStart":254.10000002384186,"domainLookupEnd":254.10000002384186,"domainLookupStart":254.10000002384186,"fetchStart":254.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":254.10000002384186,"responseEnd":540.6000000238419,"responseStart":540.6000000238419,"secureConnectionStart":254.10000002384186},{"duration":362,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":254.69999992847443,"connectEnd":254.69999992847443,"connectStart":254.69999992847443,"domainLookupEnd":254.69999992847443,"domainLookupStart":254.69999992847443,"fetchStart":254.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":254.69999992847443,"responseEnd":616.6999999284744,"responseStart":616.6999999284744,"secureConnectionStart":254.69999992847443},{"duration":366.1999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":255,"connectEnd":255,"connectStart":255,"domainLookupEnd":255,"domainLookupStart":255,"fetchStart":255,"redirectEnd":0,"redirectStart":0,"requestStart":255,"responseEnd":621.1999999284744,"responseStart":621.1999999284744,"secureConnectionStart":255},{"duration":366.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":255.10000002384186,"connectEnd":255.10000002384186,"connectStart":255.10000002384186,"domainLookupEnd":255.10000002384186,"domainLookupStart":255.10000002384186,"fetchStart":255.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":255.10000002384186,"responseEnd":621.6999999284744,"responseStart":621.6999999284744,"secureConnectionStart":255.10000002384186},{"duration":367,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":255.19999992847443,"connectEnd":255.19999992847443,"connectStart":255.19999992847443,"domainLookupEnd":255.19999992847443,"domainLookupStart":255.19999992847443,"fetchStart":255.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":255.19999992847443,"responseEnd":622.1999999284744,"responseStart":622.1999999284744,"secureConnectionStart":255.19999992847443},{"duration":427.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":255.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":255.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":682.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":367.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":255.69999992847443,"connectEnd":255.69999992847443,"connectStart":255.69999992847443,"domainLookupEnd":255.69999992847443,"domainLookupStart":255.69999992847443,"fetchStart":255.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":255.69999992847443,"responseEnd":622.7999999523163,"responseStart":622.7999999523163,"secureConnectionStart":255.69999992847443},{"duration":427,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":255.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":255.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":682.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":367.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":256,"connectEnd":256,"connectStart":256,"domainLookupEnd":256,"domainLookupStart":256,"fetchStart":256,"redirectEnd":0,"redirectStart":0,"requestStart":256,"responseEnd":623.3999999761581,"responseStart":623.3999999761581,"secureConnectionStart":256},{"duration":1007.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":260.39999997615814,"connectEnd":260.39999997615814,"connectStart":260.39999997615814,"domainLookupEnd":260.39999997615814,"domainLookupStart":260.39999997615814,"fetchStart":260.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":260.39999997615814,"responseEnd":1268.1000000238419,"responseStart":1268.1000000238419,"secureConnectionStart":260.39999997615814},{"duration":990.6000000238419,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":277.89999997615814,"connectEnd":277.89999997615814,"connectStart":277.89999997615814,"domainLookupEnd":277.89999997615814,"domainLookupStart":277.89999997615814,"fetchStart":277.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":277.89999997615814,"responseEnd":1268.5,"responseStart":1268.5,"secureConnectionStart":277.89999997615814},{"duration":93.39999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":694.6000000238419,"connectEnd":694.6000000238419,"connectStart":694.6000000238419,"domainLookupEnd":694.6000000238419,"domainLookupStart":694.6000000238419,"fetchStart":694.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":694.6000000238419,"responseEnd":788,"responseStart":788,"secureConnectionStart":694.6000000238419},{"duration":312.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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":956.8999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":956.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1269.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":415.3000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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":957.7999999523163,"connectEnd":957.7999999523163,"connectStart":957.7999999523163,"domainLookupEnd":957.7999999523163,"domainLookupStart":957.7999999523163,"fetchStart":957.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":957.7999999523163,"responseEnd":1373.1000000238419,"responseStart":1373.1000000238419,"secureConnectionStart":957.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":71,"responseStart":246,"responseEnd":279,"domLoading":249,"domInteractive":1309,"domContentLoadedEventStart":1309,"domContentLoadedEventEnd":1360,"domComplete":1836,"loadEventStart":1836,"loadEventEnd":1837,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1275},{"name":"bigPipe.sidebar-id.end","time":1275.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1275.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":1280.2999999523163},{"name":"activityTabFullyLoaded","time":1378.1999999284744}],"measures":[],"correlationId":"d24c7bd0d452e6","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":111,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"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)