mysql 10.0.10-MariaDB (root) [test]> show create table t1\G
|
*************************** 1. row ***************************
|
Table: t1
|
Create Table: CREATE TABLE `t1` (
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`c1` char(32) DEFAULT NULL,
|
`c2` char(32) DEFAULT NULL,
|
`c3` char(32) DEFAULT NULL,
|
PRIMARY KEY (`id`)
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1
|
1 row in set (0.00 sec)
|
|
mysql 10.0.10-MariaDB (root) [test]> select * from t1;
|
+----+------+------+------+
|
| id | c1 | c2 | c3 |
|
+----+------+------+------+
|
| 1 | a | NULL | c |
|
+----+------+------+------+
|
1 row in set (0.00 sec)
|
|
mysql 10.0.10-MariaDB (root) [test]> create table t1_pivot engine=connect table_type=pivot tabname=t1;
|
ERROR 1939 (HY000): Engine CONNECT failed to discover table `test`.`t1_pivot` with 'CREATE TABLE whatever (`id` INT(10) NOT NULL,`c1` CHAR(32) NOT NULL,`` CHAR(32) NOT NULL FLAG=1) TABLE_TYPE='pivot' TABNAME='t1''
|
This should work differently, or it should be documented and should give a better error message.
{"report":{"fcp":1277.0999999046326,"ttfb":413.2000000476837,"pageVisibility":"visible","entityId":34307,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"33ada8b3-ecc9-42b3-a7fe-2689885c4add","navigationType":0,"readyForUser":1352.5999999046326,"redirectCount":0,"resourceLoadedEnd":1640.8999998569489,"resourceLoadedStart":418.59999990463257,"resourceTiming":[{"duration":311.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":418.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":418.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":730.5,"responseStart":0,"secureConnectionStart":0},{"duration":312,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":418.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":418.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":730.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":321.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":419,"connectEnd":419,"connectStart":419,"domainLookupEnd":419,"domainLookupStart":419,"fetchStart":419,"redirectEnd":0,"redirectStart":0,"requestStart":419,"responseEnd":740.7000000476837,"responseStart":740.7000000476837,"secureConnectionStart":419},{"duration":372.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":419.2000000476837,"connectEnd":419.2000000476837,"connectStart":419.2000000476837,"domainLookupEnd":419.2000000476837,"domainLookupStart":419.2000000476837,"fetchStart":419.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":419.2000000476837,"responseEnd":791.3999998569489,"responseStart":791.3999998569489,"secureConnectionStart":419.2000000476837},{"duration":376.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":419.5,"connectEnd":419.5,"connectStart":419.5,"domainLookupEnd":419.5,"domainLookupStart":419.5,"fetchStart":419.5,"redirectEnd":0,"redirectStart":0,"requestStart":419.5,"responseEnd":795.5999999046326,"responseStart":795.5999999046326,"secureConnectionStart":419.5},{"duration":376.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":419.7000000476837,"connectEnd":419.7000000476837,"connectStart":419.7000000476837,"domainLookupEnd":419.7000000476837,"domainLookupStart":419.7000000476837,"fetchStart":419.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":419.7000000476837,"responseEnd":796,"responseStart":796,"secureConnectionStart":419.7000000476837},{"duration":376.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":419.7999999523163,"connectEnd":419.7999999523163,"connectStart":419.7999999523163,"domainLookupEnd":419.7999999523163,"domainLookupStart":419.7999999523163,"fetchStart":419.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":419.7999999523163,"responseEnd":796.2999999523163,"responseStart":796.2999999523163,"secureConnectionStart":419.7999999523163},{"duration":468.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":420,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":420,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":888.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":376.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":420.2000000476837,"connectEnd":420.2000000476837,"connectStart":420.2000000476837,"domainLookupEnd":420.2000000476837,"domainLookupStart":420.2000000476837,"fetchStart":420.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":420.2000000476837,"responseEnd":796.7999999523163,"responseStart":796.7999999523163,"secureConnectionStart":420.2000000476837},{"duration":468.60000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":420.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":420.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":889,"responseStart":0,"secureConnectionStart":0},{"duration":376.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":420.59999990463257,"connectEnd":420.59999990463257,"connectStart":420.59999990463257,"domainLookupEnd":420.59999990463257,"domainLookupStart":420.59999990463257,"fetchStart":420.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":420.59999990463257,"responseEnd":797.3999998569489,"responseStart":797.3999998569489,"secureConnectionStart":420.59999990463257},{"duration":593.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":421.2999999523163,"connectEnd":421.2999999523163,"connectStart":421.2999999523163,"domainLookupEnd":421.2999999523163,"domainLookupStart":421.2999999523163,"fetchStart":421.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":421.2999999523163,"responseEnd":1014.7000000476837,"responseStart":1014.5999999046326,"secureConnectionStart":421.2999999523163},{"duration":1204.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":421.2999999523163,"connectEnd":421.2999999523163,"connectStart":421.2999999523163,"domainLookupEnd":421.2999999523163,"domainLookupStart":421.2999999523163,"fetchStart":421.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":421.2999999523163,"responseEnd":1625.3999998569489,"responseStart":1625.3999998569489,"secureConnectionStart":421.2999999523163},{"duration":113.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":901.2000000476837,"connectEnd":901.2000000476837,"connectStart":901.2000000476837,"domainLookupEnd":901.2000000476837,"domainLookupStart":901.2000000476837,"fetchStart":901.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":901.2000000476837,"responseEnd":1015,"responseStart":1015,"secureConnectionStart":901.2000000476837},{"duration":474.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":1166,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1166,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1640.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":474.2999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1166.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1166.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1640.8999998569489,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":268,"responseStart":414,"responseEnd":415,"domLoading":417,"domInteractive":1650,"domContentLoadedEventStart":1650,"domContentLoadedEventEnd":1691,"domComplete":2117,"loadEventStart":2117,"loadEventEnd":2117,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1627.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1628.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1628.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1629.7000000476837},{"name":"activityTabFullyLoaded","time":1704.5}],"measures":[],"correlationId":"3c0e3ea6ff845c","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":87,"dbReadsTimeInMs":8,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I think an error is kind of expected – if the contents of the column is supposed to become a name of a column, it cannot really be NULL, right?
It would be nice indeed to have a better error message if it's possible.
What I totally agree with is that it should be documented.