When you do not explicitly specify that TRANSACTIONAL=0 in your CREATE query, everything works fine:
CREATE TABLE table_a (col_1 INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY(col_1)) ENGINE=MEMORY;
Query OK, 0 rows affected (0.018 sec)
ALTER TABLE table_a ADD COLUMN col_2 VARCHAR(255) AFTER col_1;
Query OK, 0 rows affected (0.022 sec)
If you do specify TRANSACTIONAL=0, CREATE TABLE throws a warning, and ALTER TABLE fails:
CREATE TABLE table_b (col_1 INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY(col_1)) ENGINE=MEMORY TRANSACTIONAL=0;
Query OK, 0 rows affected, 1 warning (0.020 sec)
SHOW WARNINGS;
Warning |
1478 |
Table storage engine 'MEMORY' does not support the create option 'TRANSACTIONAL=1' |
ALTER TABLE table_b ADD COLUMN col_2 VARCHAR(255) AFTER col_1;
ERROR 1478 (HY000): Table storage engine 'MEMORY' does not support the create option 'TRANSACTIONAL=1'
- is duplicated by
-
MDEV-17513
Impossible to optimize tables (TRANSACTIONAL option is handled inconsistently)
-
-
Closed
{"report":{"fcp":823.6999998092651,"ttfb":236.59999990463257,"pageVisibility":"visible","entityId":72258,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"81c78dc3-ca48-4274-ba9a-d2844879a0ed","navigationType":0,"readyForUser":891.0999999046326,"redirectCount":0,"resourceLoadedEnd":547.0999999046326,"resourceLoadedStart":242.09999990463257,"resourceTiming":[{"duration":8.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":242.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":250.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":8,"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":242.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":250.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":193,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":242.39999985694885,"connectEnd":242.39999985694885,"connectStart":242.39999985694885,"domainLookupEnd":242.39999985694885,"domainLookupStart":242.39999985694885,"fetchStart":242.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":258.19999980926514,"responseEnd":435.39999985694885,"responseStart":287.5,"secureConnectionStart":242.39999985694885},{"duration":304.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":242.39999985694885,"connectEnd":242.39999985694885,"connectStart":242.39999985694885,"domainLookupEnd":242.39999985694885,"domainLookupStart":242.39999985694885,"fetchStart":242.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":258.69999980926514,"responseEnd":547.0999999046326,"responseStart":305.39999985694885,"secureConnectionStart":242.39999985694885},{"duration":48.40000009536743,"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":242.59999990463257,"connectEnd":242.59999990463257,"connectStart":242.59999990463257,"domainLookupEnd":242.59999990463257,"domainLookupStart":242.59999990463257,"fetchStart":242.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":258.89999985694885,"responseEnd":291,"responseStart":288.39999985694885,"secureConnectionStart":242.59999990463257},{"duration":52,"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":242.69999980926514,"connectEnd":242.69999980926514,"connectStart":242.69999980926514,"domainLookupEnd":242.69999980926514,"domainLookupStart":242.69999980926514,"fetchStart":242.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":259,"responseEnd":294.69999980926514,"responseStart":289.19999980926514,"secureConnectionStart":242.69999980926514},{"duration":52.09999990463257,"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":242.79999995231628,"connectEnd":242.79999995231628,"connectStart":242.79999995231628,"domainLookupEnd":242.79999995231628,"domainLookupStart":242.79999995231628,"fetchStart":242.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":259.09999990463257,"responseEnd":294.89999985694885,"responseStart":291.39999985694885,"secureConnectionStart":242.79999995231628},{"duration":12.200000047683716,"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":242.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":255.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":13,"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":243,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":256,"responseStart":0,"secureConnectionStart":0},{"duration":52.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":243,"connectEnd":243,"connectStart":243,"domainLookupEnd":243,"domainLookupStart":243,"fetchStart":243,"redirectEnd":0,"redirectStart":0,"requestStart":259.7999999523163,"responseEnd":295.69999980926514,"responseStart":292.09999990463257,"secureConnectionStart":243},{"duration":52.90000009536743,"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":243.09999990463257,"connectEnd":243.09999990463257,"connectStart":243.09999990463257,"domainLookupEnd":243.09999990463257,"domainLookupStart":243.09999990463257,"fetchStart":243.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":260.09999990463257,"responseEnd":296,"responseStart":292.7999999523163,"secureConnectionStart":243.09999990463257},{"duration":245.29999995231628,"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":244,"connectEnd":244,"connectStart":244,"domainLookupEnd":244,"domainLookupStart":244,"fetchStart":244,"redirectEnd":0,"redirectStart":0,"requestStart":294.5,"responseEnd":489.2999999523163,"responseStart":484.09999990463257,"secureConnectionStart":244},{"duration":245.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":244.09999990463257,"connectEnd":244.09999990463257,"connectStart":244.09999990463257,"domainLookupEnd":244.09999990463257,"domainLookupStart":244.09999990463257,"fetchStart":244.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":296.19999980926514,"responseEnd":489.59999990463257,"responseStart":484.7999999523163,"secureConnectionStart":244.09999990463257},{"duration":100.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":581.5999999046326,"connectEnd":581.5999999046326,"connectStart":581.5999999046326,"domainLookupEnd":581.5999999046326,"domainLookupStart":581.5999999046326,"fetchStart":581.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":648.6999998092651,"responseEnd":681.6999998092651,"responseStart":679.6999998092651,"secureConnectionStart":581.5999999046326},{"duration":99.29999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":815.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":815.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":915.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":127.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":822.3999998569489,"connectEnd":822.3999998569489,"connectStart":822.3999998569489,"domainLookupEnd":822.3999998569489,"domainLookupStart":822.3999998569489,"fetchStart":822.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":916.0999999046326,"responseEnd":949.7999999523163,"responseStart":948.5,"secureConnectionStart":822.3999998569489}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":61,"responseStart":237,"responseEnd":241,"domLoading":240,"domInteractive":983,"domContentLoadedEventStart":983,"domContentLoadedEventEnd":1027,"domComplete":1565,"loadEventStart":1565,"loadEventEnd":1566,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":961.8999998569489},{"name":"bigPipe.sidebar-id.end","time":962.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":962.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":965.5999999046326},{"name":"activityTabFullyLoaded","time":1033.1999998092651}],"measures":[],"correlationId":"711071960bebdd","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":89,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}