This query:
CREATE OR REPLACE TABLE t1 ENGINE=INNODB SELECT NULL UNION SELECT NULL;
|
returns an unexpected error:
ERROR 1005 (HY000): Can't create table `test`.`t1` (errno: 168 "Unknown (generic) error from engine")
|
Note, with ENGINE=MyISAM it works fine.
- relates to
-
MDEV-19849
InnoDB should and can be more specific with errno: 168 "Unknown (generic) error from engine". The output for MyISAM, Aria and RocksDB can also be improved.
-
-
Confirmed
{"report":{"fcp":792.3000000119209,"ttfb":179.60000002384186,"pageVisibility":"visible","entityId":79382,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"abb71d3a-4068-440a-947e-16ef078d3638","navigationType":0,"readyForUser":863.6000000238419,"redirectCount":0,"resourceLoadedEnd":887.7000000178814,"resourceLoadedStart":184.90000000596046,"resourceTiming":[{"duration":104.59999999403954,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":184.90000000596046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":184.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":289.5,"responseStart":0,"secureConnectionStart":0},{"duration":104.59999999403954,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":185.2000000178814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":289.80000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":113.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":185.30000001192093,"connectEnd":185.30000001192093,"connectStart":185.30000001192093,"domainLookupEnd":185.30000001192093,"domainLookupStart":185.30000001192093,"fetchStart":185.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":185.30000001192093,"responseEnd":298.60000002384186,"responseStart":298.60000002384186,"secureConnectionStart":185.30000001192093},{"duration":224,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":185.60000002384186,"connectEnd":185.60000002384186,"connectStart":185.60000002384186,"domainLookupEnd":185.60000002384186,"domainLookupStart":185.60000002384186,"fetchStart":185.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":185.60000002384186,"responseEnd":409.60000002384186,"responseStart":409.60000002384186,"secureConnectionStart":185.60000002384186},{"duration":227.59999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":185.7000000178814,"connectEnd":185.7000000178814,"connectStart":185.7000000178814,"domainLookupEnd":185.7000000178814,"domainLookupStart":185.7000000178814,"fetchStart":185.7000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":185.7000000178814,"responseEnd":413.30000001192093,"responseStart":413.30000001192093,"secureConnectionStart":185.7000000178814},{"duration":227.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":185.90000000596046,"connectEnd":185.90000000596046,"connectStart":185.90000000596046,"domainLookupEnd":185.90000000596046,"domainLookupStart":185.90000000596046,"fetchStart":185.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":185.90000000596046,"responseEnd":413.7000000178814,"responseStart":413.7000000178814,"secureConnectionStart":185.90000000596046},{"duration":227.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":186.10000002384186,"connectEnd":186.10000002384186,"connectStart":186.10000002384186,"domainLookupEnd":186.10000002384186,"domainLookupStart":186.10000002384186,"fetchStart":186.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":186.10000002384186,"responseEnd":414,"responseStart":414,"secureConnectionStart":186.10000002384186},{"duration":253.2999999821186,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":186.2000000178814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":439.5,"responseStart":0,"secureConnectionStart":0},{"duration":228.09999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":186.40000000596046,"connectEnd":186.40000000596046,"connectStart":186.40000000596046,"domainLookupEnd":186.40000000596046,"domainLookupStart":186.40000000596046,"fetchStart":186.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":186.40000000596046,"responseEnd":414.5,"responseStart":414.5,"secureConnectionStart":186.40000000596046},{"duration":253,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":186.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":439.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":228.2999999821186,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":186.7000000178814,"connectEnd":186.7000000178814,"connectStart":186.7000000178814,"domainLookupEnd":186.7000000178814,"domainLookupStart":186.7000000178814,"fetchStart":186.7000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":186.7000000178814,"responseEnd":415,"responseStart":415,"secureConnectionStart":186.7000000178814},{"duration":318.90000000596046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":187.5,"connectEnd":187.5,"connectStart":187.5,"domainLookupEnd":187.5,"domainLookupStart":187.5,"fetchStart":187.5,"redirectEnd":0,"redirectStart":0,"requestStart":187.5,"responseEnd":506.40000000596046,"responseStart":506.40000000596046,"secureConnectionStart":187.5},{"duration":352.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":187.60000002384186,"connectEnd":187.60000002384186,"connectStart":187.60000002384186,"domainLookupEnd":187.60000002384186,"domainLookupStart":187.60000002384186,"fetchStart":187.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":187.60000002384186,"responseEnd":540.3000000119209,"responseStart":540.2000000178814,"secureConnectionStart":187.60000002384186},{"duration":57.099999994039536,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":450.30000001192093,"connectEnd":450.30000001192093,"connectStart":450.30000001192093,"domainLookupEnd":450.30000001192093,"domainLookupStart":450.30000001192093,"fetchStart":450.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":450.30000001192093,"responseEnd":507.40000000596046,"responseStart":507.40000000596046,"secureConnectionStart":450.30000001192093},{"duration":174.7000000178814,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/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":713,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":713,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":887.7000000178814,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":12,"responseStart":179,"responseEnd":183,"domLoading":182,"domInteractive":921,"domContentLoadedEventStart":921,"domContentLoadedEventEnd":969,"domComplete":1083,"loadEventStart":1083,"loadEventEnd":1084,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":894.5},{"name":"bigPipe.sidebar-id.end","time":895.2000000178814},{"name":"bigPipe.activity-panel-pipe-id.start","time":895.4000000059605},{"name":"bigPipe.activity-panel-pipe-id.end","time":897.7000000178814},{"name":"activityTabFullyLoaded","time":988.3000000119209}],"measures":[],"correlationId":"959d105e2a24d7","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The reason for this error is that starting with some commit in 10.3 or bb-10.2-ext, the field->type() == MYSQL_TYPE_NULL is being passed to InnoDB, instead of the former MYSQL_TYPE_STRING. get_innobase_type_from_mysql_type() is not ready to handle that.
If this bug is addressed by adjusting get_innobase_type_from_mysql_type(), then extreme care must be taken to ensure that INFORMATION_SCHEMA.INNODB_SYS_COLUMNS will be reporting the same prtype and mtype as before. Otherwise, InnoDB data compatibility with older versions may be broken.