Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
5.5(EOL) , 10.0(EOL) , 10.1(EOL) , 10.2(EOL) , 10.3(EOL)
CREATE TABLE t (i INT );
CREATE PROCEDURE p() SELECT t1.f FROM t AS t1 JOIN t AS t2 USING (f);
--error ER_BAD_FIELD_ERROR
CALL p;
--error ER_BAD_FIELD_ERROR
CALL p;
# Cleanup
DROP PROCEDURE p;
DROP TABLE t;
5.5 e425216045c
#3 <signal handler called>
#4 0x00000000005a9ae9 in find_field_in_table_ref (thd=0x7f2bfe664060, table_list=0xa5a5a5a5a5a5a5a5, name=0x7f2bfd599d48 "f", length=1, item_name=0x7f2bfd599d48 "f", db_name=0x0, table_name=0x7f2bfd599d38 "t1", ref=0x7f2bfd599e68, check_privileges=true, allow_rowid=true, cached_field_index_ptr=0x7f2bfd599e1c, register_tree_change=true, actual_table=0x7f2c043457d8) at /data/src/5.5/sql/sql_base.cc:6628
#5 0x00000000005aa809 in find_field_in_tables (thd=0x7f2bfe664060, item=0x7f2bfd599d58, first_table=0xa5a5a5a5a5a5a5a5, last_table=0x0, ref=0x7f2bfd599e68, report_error=IGNORE_EXCEPT_NON_UNIQUE, check_privileges=true, register_tree_change=true) at /data/src/5.5/sql/sql_base.cc:6980
#6 0x00000000007ca82e in Item_field::fix_fields (this=0x7f2bfd599d58, thd=0x7f2bfe664060, reference=0x7f2bfd599e68) at /data/src/5.5/sql/item.cc:5260
#7 0x00000000005ad1b9 in setup_fields (thd=0x7f2bfe664060, ref_pointer_array=0x7f2bfd581708, fields=..., mark_used_columns=MARK_COLUMNS_READ, sum_func_list=0x7f2bfd578520, pre_fix=0x7f2bfd599298, allow_sum_func=true) at /data/src/5.5/sql/sql_base.cc:8192
#8 0x000000000062f31f in JOIN::prepare (this=0x7f2bfd5781d0, rref_pointer_array=0x7f2bfd599408, tables_init=0x7f2bfd580078, wild_num=0, conds_init=0x0, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7f2bfd599168, unit_arg=0x7f2bfd598a88) at /data/src/5.5/sql/sql_select.cc:733
#9 0x0000000000637d0a in mysql_select (thd=0x7f2bfe664060, rref_pointer_array=0x7f2bfd599408, tables=0x7f2bfd580078, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147749632, result=0x7f2bfd5781b0, unit=0x7f2bfd598a88, select_lex=0x7f2bfd599168) at /data/src/5.5/sql/sql_select.cc:3106
#10 0x000000000062e51a in handle_select (thd=0x7f2bfe664060, lex=0x7f2bfd5989d8, result=0x7f2bfd5781b0, setup_tables_done_option=0) at /data/src/5.5/sql/sql_select.cc:323
#11 0x0000000000607932 in execute_sqlcom_select (thd=0x7f2bfe664060, all_tables=0x7f2bfd580078) at /data/src/5.5/sql/sql_parse.cc:4678
#12 0x0000000000600cb3 in mysql_execute_command (thd=0x7f2bfe664060) at /data/src/5.5/sql/sql_parse.cc:2224
#13 0x00000000008e1f10 in sp_instr_stmt::exec_core (this=0x7f2bfd599fc8, thd=0x7f2bfe664060, nextp=0x7f2c04346c28) at /data/src/5.5/sql/sp_head.cc:3220
#14 0x00000000008e16b7 in sp_lex_keeper::reset_lex_and_exec_core (this=0x7f2bfd59a008, thd=0x7f2bfe664060, nextp=0x7f2c04346c28, open_tables=false, instr=0x7f2bfd599fc8) at /data/src/5.5/sql/sp_head.cc:2998
#15 0x00000000008e1c38 in sp_instr_stmt::execute (this=0x7f2bfd599fc8, thd=0x7f2bfe664060, nextp=0x7f2c04346c28) at /data/src/5.5/sql/sp_head.cc:3144
#16 0x00000000008ddaa1 in sp_head::execute (this=0x7f2bfd598078, thd=0x7f2bfe664060, merge_da_on_success=true) at /data/src/5.5/sql/sp_head.cc:1431
#17 0x00000000008df807 in sp_head::execute_procedure (this=0x7f2bfd598078, thd=0x7f2bfe664060, args=0x7f2bfe668020) at /data/src/5.5/sql/sp_head.cc:2197
#18 0x0000000000605f8f in mysql_execute_command (thd=0x7f2bfe664060) at /data/src/5.5/sql/sql_parse.cc:4115
#19 0x000000000060a4fe in mysql_parse (thd=0x7f2bfe664060, rawbuf=0x7f2bfd548078 "CALL p", length=6, parser_state=0x7f2c04347640) at /data/src/5.5/sql/sql_parse.cc:5923
#20 0x00000000005fe213 in dispatch_command (command=COM_QUERY, thd=0x7f2bfe664060, packet=0x7f2c0235b061 "CALL p", packet_length=6) at /data/src/5.5/sql/sql_parse.cc:1066
#21 0x00000000005fd405 in do_command (thd=0x7f2bfe664060) at /data/src/5.5/sql/sql_parse.cc:793
#22 0x0000000000700677 in do_handle_one_connection (thd_arg=0x7f2bfe664060) at /data/src/5.5/sql/sql_connect.cc:1268
#23 0x0000000000700404 in handle_one_connection (arg=0x7f2bfe664060) at /data/src/5.5/sql/sql_connect.cc:1184
#24 0x0000000000a0f939 in pfs_spawn_thread (arg=0x7f2bff3933a0) at /data/src/5.5/storage/perfschema/pfs.cc:1015
#25 0x00007f2c03f7a494 in start_thread (arg=0x7f2c04348700) at pthread_create.c:333
#26 0x00007f2c0299093f in clone () from /lib/x86_64-linux-gnu/libc.so.6
{"report":{"fcp":976.7000000476837,"ttfb":459.60000014305115,"pageVisibility":"visible","entityId":68196,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"71c23d08-444f-40a4-96a3-7536f68bc1b9","navigationType":0,"readyForUser":1054.6000001430511,"redirectCount":0,"resourceLoadedEnd":763.3000001907349,"resourceLoadedStart":464.90000009536743,"resourceTiming":[{"duration":53.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":464.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":464.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":53,"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":465.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":465.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":73.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":465.30000019073486,"connectEnd":465.30000019073486,"connectStart":465.30000019073486,"domainLookupEnd":465.30000019073486,"domainLookupStart":465.30000019073486,"fetchStart":465.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":465.30000019073486,"responseEnd":538.9000000953674,"responseStart":538.9000000953674,"secureConnectionStart":465.30000019073486},{"duration":75.20000004768372,"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":465.40000009536743,"connectEnd":465.40000009536743,"connectStart":465.40000009536743,"domainLookupEnd":465.40000009536743,"domainLookupStart":465.40000009536743,"fetchStart":465.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":465.40000009536743,"responseEnd":540.6000001430511,"responseStart":540.6000001430511,"secureConnectionStart":465.40000009536743},{"duration":256.7000000476837,"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":465.40000009536743,"connectEnd":465.40000009536743,"connectStart":465.40000009536743,"domainLookupEnd":465.40000009536743,"domainLookupStart":465.40000009536743,"fetchStart":465.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":541.5,"responseEnd":722.1000001430511,"responseStart":555.1000001430511,"secureConnectionStart":465.40000009536743},{"duration":75.60000014305115,"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":465.5,"connectEnd":465.5,"connectStart":465.5,"domainLookupEnd":465.5,"domainLookupStart":465.5,"fetchStart":465.5,"redirectEnd":0,"redirectStart":0,"requestStart":465.5,"responseEnd":541.1000001430511,"responseStart":541.1000001430511,"secureConnectionStart":465.5},{"duration":75.89999985694885,"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":465.60000014305115,"connectEnd":465.60000014305115,"connectStart":465.60000014305115,"domainLookupEnd":465.60000014305115,"domainLookupStart":465.60000014305115,"fetchStart":465.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":465.60000014305115,"responseEnd":541.5,"responseStart":541.5,"secureConnectionStart":465.60000014305115},{"duration":76.09999990463257,"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":465.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":465.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":541.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":75.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":465.90000009536743,"connectEnd":465.90000009536743,"connectStart":465.90000009536743,"domainLookupEnd":465.90000009536743,"domainLookupStart":465.90000009536743,"fetchStart":465.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":465.90000009536743,"responseEnd":541.8000001907349,"responseStart":541.8000001907349,"secureConnectionStart":465.90000009536743},{"duration":76.20000004768372,"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":466,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":466,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":542.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":76.40000009536743,"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":466,"connectEnd":466,"connectStart":466,"domainLookupEnd":466,"domainLookupStart":466,"fetchStart":466,"redirectEnd":0,"redirectStart":0,"requestStart":466,"responseEnd":542.4000000953674,"responseStart":542.4000000953674,"secureConnectionStart":466},{"duration":118.40000009536743,"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":466.7000000476837,"connectEnd":466.7000000476837,"connectStart":466.7000000476837,"domainLookupEnd":466.7000000476837,"domainLookupStart":466.7000000476837,"fetchStart":466.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":466.7000000476837,"responseEnd":585.1000001430511,"responseStart":585.1000001430511,"secureConnectionStart":466.7000000476837},{"duration":296.5,"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":466.80000019073486,"connectEnd":466.80000019073486,"connectStart":466.80000019073486,"domainLookupEnd":466.80000019073486,"domainLookupStart":466.80000019073486,"fetchStart":466.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":466.80000019073486,"responseEnd":763.3000001907349,"responseStart":763.3000001907349,"secureConnectionStart":466.80000019073486},{"duration":105.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":704.2000000476837,"connectEnd":704.2000000476837,"connectStart":704.2000000476837,"domainLookupEnd":704.2000000476837,"domainLookupStart":704.2000000476837,"fetchStart":704.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":779.7000000476837,"responseEnd":809.4000000953674,"responseStart":808.6000001430511,"secureConnectionStart":704.2000000476837},{"duration":210.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":934.4000000953674,"connectEnd":934.4000000953674,"connectStart":934.4000000953674,"domainLookupEnd":934.4000000953674,"domainLookupStart":934.4000000953674,"fetchStart":934.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1114.6000001430511,"responseEnd":1144.7000000476837,"responseStart":1142.9000000953674,"secureConnectionStart":934.4000000953674},{"duration":149.10000014305115,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":970.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":970.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1119.3000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":48,"responseStart":460,"responseEnd":461,"domLoading":463,"domInteractive":1108,"domContentLoadedEventStart":1108,"domContentLoadedEventEnd":1155,"domComplete":1755,"loadEventStart":1755,"loadEventEnd":1755,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1090},{"name":"bigPipe.sidebar-id.end","time":1090.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1091},{"name":"bigPipe.activity-panel-pipe-id.end","time":1094.1000001430511},{"name":"activityTabFullyLoaded","time":1197.9000000953674}],"measures":[],"correlationId":"be23943c321d40","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}