CREATE TABLE t (a INT,b VARCHAR(1),KEY(a,b)) ENGINE=InnoDB;
|
ALTER TABLE t ADD COLUMN x INT GENERATED ALWAYS AS (a+b),ADD INDEX idx (x);
|
ALTER TABLE t CHANGE COLUMN b bb VARCHAR(256);
|
Leads to:
10.6.0 a3e3225cd3b816d47621e749e21a71b6a864a96a (Debug)
|
mysqld: /test/10.6_dbg/storage/innobase/handler/ha_innodb.cc:5246: void innobase_build_v_templ(const TABLE*, const dict_table_t*, dict_vcol_templ_t*, const dict_add_v_col_t*, bool): Assertion `!((system_charset_info)->coll->strcasecmp((system_charset_info), (dict_table_get_col_name( ib_table, j)), (field->field_name.str)))' failed.
|
10.6.0 a3e3225cd3b816d47621e749e21a71b6a864a96a (Debug)
|
Core was generated by `/test/MD150421-mariadb-10.6.0-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x154e849ac700 (LWP 1925542))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000154e8fe11859 in __GI_abort () at abort.c:79
|
#2 0x0000154e8fe11729 in __assert_fail_base (fmt=0x154e8ffa7588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55c6870c2a70 "!((system_charset_info)->coll->strcasecmp((system_charset_info), (dict_table_get_col_name( ib_table, j)), (field->field_name.str)))", file=0x55c6870bbc30 "/test/10.6_dbg/storage/innobase/handler/ha_innodb.cc", line=5246, function=<optimized out>) at assert.c:92
|
#3 0x0000154e8fe22f36 in __GI___assert_fail (assertion=assertion@entry=0x55c6870c2a70 "!((system_charset_info)->coll->strcasecmp((system_charset_info), (dict_table_get_col_name( ib_table, j)), (field->field_name.str)))", file=file@entry=0x55c6870bbc30 "/test/10.6_dbg/storage/innobase/handler/ha_innodb.cc", line=line@entry=5246, function=function@entry=0x55c6870c2990 "void innobase_build_v_templ(const TABLE*, const dict_table_t*, dict_vcol_templ_t*, const dict_add_v_col_t*, bool)") at assert.c:101
|
#4 0x000055c6868b53b3 in innobase_build_v_templ (table=table@entry=0x154e849a8860, ib_table=0x154e2c01eac8, s_templ=s_templ@entry=0x154e2c062ec8, add_v=add_v@entry=0x0, locked=locked@entry=false) at /test/10.6_dbg/storage/innobase/include/dict0dict.h:811
|
#5 0x000055c6868e1ff9 in ha_innobase::inplace_alter_table (this=0x154e2c044ca0, altered_table=0x154e849a8860, ha_alter_info=0x154e849a87b0) at /test/10.6_dbg/storage/innobase/handler/handler0alter.cc:8436
|
#6 0x000055c6862afeba in handler::ha_inplace_alter_table (ha_alter_info=0x154e849a87b0, altered_table=0x154e849a8860, this=<optimized out>) at /test/10.6_dbg/sql/handler.h:4573
|
#7 mysql_inplace_alter_table (thd=thd@entry=0x154e2c000db8, table_list=0x154e2c013cb0, table=table@entry=0x154e2c0443a8, altered_table=altered_table@entry=0x154e849a8860, ha_alter_info=ha_alter_info@entry=0x154e849a87b0, target_mdl_request=target_mdl_request@entry=0x154e849a8db0, alter_ctx=0x154e849a9910) at /test/10.6_dbg/sql/sql_table.cc:8126
|
#8 0x000055c6862c3f68 in mysql_alter_table (thd=thd@entry=0x154e2c000db8, new_db=new_db@entry=0x154e2c005838, new_name=new_name@entry=0x154e2c005c60, create_info=create_info@entry=0x154e849aa540, table_list=<optimized out>, table_list@entry=0x154e2c013cb0, alter_info=alter_info@entry=0x154e849aa450, order_num=0, order=0x0, ignore=false, if_exists=false) at /test/10.6_dbg/sql/sql_table.cc:10780
|
#9 0x000055c686348421 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x154e2c000db8) at /test/10.6_dbg/sql/structs.h:564
|
#10 0x000055c6861ee3d6 in mysql_execute_command (thd=thd@entry=0x154e2c000db8) at /test/10.6_dbg/sql/sql_parse.cc:5986
|
#11 0x000055c6861d4a06 in mysql_parse (thd=thd@entry=0x154e2c000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x154e849ab410) at /test/10.6_dbg/sql/sql_parse.cc:8017
|
#12 0x000055c6861e37df in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x154e2c000db8, packet=packet@entry=0x154e2c00b369 "ALTER TABLE t CHANGE COLUMN b bb VARCHAR(256)", packet_length=packet_length@entry=45, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1331
|
#13 0x000055c6861e6bd5 in do_command (thd=0x154e2c000db8, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1406
|
#14 0x000055c68634077c in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55c6887a9718, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
|
#15 0x000055c686340d81 in handle_one_connection (arg=arg@entry=0x55c6887a9718) at /test/10.6_dbg/sql/sql_connect.cc:1312
|
#16 0x000055c6867eea03 in pfs_spawn_thread (arg=0x55c6886cdd28) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
|
#17 0x0000154e9031f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#18 0x0000154e8ff0e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.4.19 (dbg), 10.5.10 (dbg), 10.6.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.38 (dbg), 10.2.38 (opt), 10.3.29 (dbg), 10.3.29 (opt), 10.4.19 (opt), 10.5.10 (opt), 10.6.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.33 (dbg), 5.7.33 (opt), 8.0.23 (dbg), 8.0.23 (opt)
Regression;
10.3.29 7d5ec9f1aeec1ea8d00a0aa5bfec521948cfb8be (Debug)
|
10.3.29-dbg>CREATE TABLE t (a INT,b VARCHAR(1),KEY(a,b)) ENGINE=InnoDB;
|
Query OK, 0 rows affected (0.025 sec)
|
|
10.3.29-dbg>ALTER TABLE t ADD COLUMN x INT GENERATED ALWAYS AS (a+b),ADD INDEX idx (x);
|
Query OK, 0 rows affected (0.029 sec)
|
Records: 0 Duplicates: 0 Warnings: 0
|
|
10.3.29-dbg>ALTER TABLE t CHANGE COLUMN b bb VARCHAR(256);
|
Query OK, 0 rows affected (0.074 sec)
|
Records: 0 Duplicates: 0 Warnings: 0
|
|
10.3.29-dbg>
|
No workflow transitions have been executed yet.
{"report":{"fcp":1082.7999999523163,"ttfb":213.59999990463257,"pageVisibility":"visible","entityId":99239,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"eed1f128-3472-42e3-83b9-649f99b936e7","navigationType":0,"readyForUser":1207,"redirectCount":0,"resourceLoadedEnd":800.5,"resourceLoadedStart":232.79999995231628,"resourceTiming":[{"duration":67.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":232.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":300.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":69.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":233,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":233,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":445,"initiatorType":"script","name":"https://jira.mariadb.org/s/b09d0d077992e4331b5f9ec0d3ec448c-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":233.20000004768372,"connectEnd":233.20000004768372,"connectStart":233.20000004768372,"domainLookupEnd":233.20000004768372,"domainLookupStart":233.20000004768372,"fetchStart":233.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":313.7999999523163,"responseEnd":678.2000000476837,"responseStart":367.40000009536743,"secureConnectionStart":233.20000004768372},{"duration":567.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/b47ab3df14096803b180217eb8482517-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":233.20000004768372,"connectEnd":233.20000004768372,"connectStart":233.20000004768372,"domainLookupEnd":233.20000004768372,"domainLookupStart":233.20000004768372,"fetchStart":233.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":313.90000009536743,"responseEnd":800.5,"responseStart":373.40000009536743,"secureConnectionStart":233.20000004768372},{"duration":154.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/6c569cbf8087ab04e40d0bef98627457-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":233.40000009536743,"connectEnd":233.40000009536743,"connectStart":233.40000009536743,"domainLookupEnd":233.40000009536743,"domainLookupStart":233.40000009536743,"fetchStart":233.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":314.09999990463257,"responseEnd":388.2000000476837,"responseStart":382.7000000476837,"secureConnectionStart":233.40000009536743},{"duration":155,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":233.40000009536743,"connectEnd":233.40000009536743,"connectStart":233.40000009536743,"domainLookupEnd":233.40000009536743,"domainLookupStart":233.40000009536743,"fetchStart":233.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":314.09999990463257,"responseEnd":388.40000009536743,"responseStart":383.40000009536743,"secureConnectionStart":233.40000009536743},{"duration":157.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":233.5,"connectEnd":233.5,"connectStart":233.5,"domainLookupEnd":233.5,"domainLookupStart":233.5,"fetchStart":233.5,"redirectEnd":0,"redirectStart":0,"requestStart":314.2000000476837,"responseEnd":391.40000009536743,"responseStart":385.2999999523163,"secureConnectionStart":233.5},{"duration":73.60000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":233.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":233.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":307.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":155.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":233.59999990463257,"connectEnd":233.59999990463257,"connectStart":233.59999990463257,"domainLookupEnd":233.59999990463257,"domainLookupStart":233.59999990463257,"fetchStart":233.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":314.2999999523163,"responseEnd":388.7999999523163,"responseStart":384.09999990463257,"secureConnectionStart":233.59999990463257},{"duration":73.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":233.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":233.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":307.5,"responseStart":0,"secureConnectionStart":0},{"duration":158.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":233.79999995231628,"connectEnd":233.79999995231628,"connectStart":233.79999995231628,"domainLookupEnd":233.79999995231628,"domainLookupStart":233.79999995231628,"fetchStart":233.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":314.40000009536743,"responseEnd":392,"responseStart":386.2999999523163,"secureConnectionStart":233.79999995231628},{"duration":532,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":234.59999990463257,"connectEnd":234.59999990463257,"connectStart":234.59999990463257,"domainLookupEnd":234.59999990463257,"domainLookupStart":234.59999990463257,"fetchStart":234.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":369.2000000476837,"responseEnd":766.5999999046326,"responseStart":759.7000000476837,"secureConnectionStart":234.59999990463257},{"duration":536.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":234.59999990463257,"connectEnd":234.59999990463257,"connectStart":234.59999990463257,"domainLookupEnd":234.59999990463257,"domainLookupStart":234.59999990463257,"fetchStart":234.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":385.2999999523163,"responseEnd":771.2999999523163,"responseStart":766.9000000953674,"secureConnectionStart":234.59999990463257},{"duration":80.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":826,"connectEnd":826,"connectStart":826,"domainLookupEnd":826,"domainLookupStart":826,"fetchStart":826,"redirectEnd":0,"redirectStart":0,"requestStart":867.2999999523163,"responseEnd":906.9000000953674,"responseStart":906.0999999046326,"secureConnectionStart":826}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":68,"responseStart":214,"responseEnd":226,"domLoading":230,"domInteractive":1269,"domContentLoadedEventStart":1269,"domContentLoadedEventEnd":1322,"domComplete":2129,"loadEventStart":2129,"loadEventEnd":2129,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1252.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1252.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1253},{"name":"bigPipe.activity-panel-pipe-id.end","time":1253.5},{"name":"activityTabFullyLoaded","time":1331.4000000953674}],"measures":[],"correlationId":"59f364797ef663","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":76,"dbReadsTimeInMs":17,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}