ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SQL' at line 1
If I run the two forms, all I see is a difference in quotes, and I'm not sure how that's helpful:
Ian Gilfillan
added a comment - holyfoot , monty or serg please provide examples for this feature - I can't find any tests, and the documentation added to the page in:
https://mariadb.com/kb/en/library/xa-transactions/+revision/64274/64269/
and
https://mariadb.com/kb/en/library/xa-transactions/+revision/64269/25115/
is not correct or sufficient. For example,
XA RECOVER FORMAT=SQL;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SQL' at line 1
If I run the two forms, all I see is a difference in quotes, and I'm not sure how that's helpful:
XA RECOVER FORMAT='SQL';
+----------+--------------+--------------+--------+
| formatID | gtrid_length | bqual_length | data |
+----------+--------------+--------------+--------+
| 1 | 4 | 0 | 'test' |
+----------+--------------+--------------+--------+
XA RECOVER FORMAT='RAW';
+----------+--------------+--------------+------+
| formatID | gtrid_length | bqual_length | data |
+----------+--------------+--------------+------+
| 1 | 4 | 0 | test |
+----------+--------------+--------------+------+
For a meaningful test case try something with non-printable bytes in gtrid and/or with bqual. Then you'll see the difference.
Sergei Golubchik
added a comment - Test cases are in the commit, https://github.com/mariadb/server/commit/0acac4fe5fd6d8fab9f13859219f46842153803b
For a meaningful test case try something with non-printable bytes in gtrid and/or with bqual. Then you'll see the difference.
People
Ian Gilfillan
Ian Gilfillan
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1432.9000000953674,"ttfb":240.59999990463257,"pageVisibility":"visible","entityId":65204,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6a0d1018-0e48-4a64-b1b6-198d17c8bb82","navigationType":0,"readyForUser":1447.0999999046326,"redirectCount":0,"resourceLoadedEnd":1529.5,"resourceLoadedStart":339.7999997138977,"resourceTiming":[{"duration":296.7000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":339.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":339.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":636.5,"responseStart":0,"secureConnectionStart":0},{"duration":297.09999990463257,"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":340.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":340.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":637.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":307.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":340.19999980926514,"connectEnd":340.19999980926514,"connectStart":340.19999980926514,"domainLookupEnd":340.19999980926514,"domainLookupStart":340.19999980926514,"fetchStart":340.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":340.19999980926514,"responseEnd":647.9000000953674,"responseStart":647.9000000953674,"secureConnectionStart":340.19999980926514},{"duration":337.09999990463257,"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":340.40000009536743,"connectEnd":340.40000009536743,"connectStart":340.40000009536743,"domainLookupEnd":340.40000009536743,"domainLookupStart":340.40000009536743,"fetchStart":340.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":340.40000009536743,"responseEnd":677.5,"responseStart":677.5,"secureConnectionStart":340.40000009536743},{"duration":341,"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":340.69999980926514,"connectEnd":340.69999980926514,"connectStart":340.69999980926514,"domainLookupEnd":340.69999980926514,"domainLookupStart":340.69999980926514,"fetchStart":340.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":340.69999980926514,"responseEnd":681.6999998092651,"responseStart":681.6999998092651,"secureConnectionStart":340.69999980926514},{"duration":405.40000009536743,"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":340.7999997138977,"connectEnd":340.7999997138977,"connectStart":340.7999997138977,"domainLookupEnd":340.7999997138977,"domainLookupStart":340.7999997138977,"fetchStart":340.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":340.7999997138977,"responseEnd":746.1999998092651,"responseStart":746.1999998092651,"secureConnectionStart":340.7999997138977},{"duration":418.30000019073486,"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":341.09999990463257,"connectEnd":341.09999990463257,"connectStart":341.09999990463257,"domainLookupEnd":341.09999990463257,"domainLookupStart":341.09999990463257,"fetchStart":341.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":341.09999990463257,"responseEnd":759.4000000953674,"responseStart":759.4000000953674,"secureConnectionStart":341.09999990463257},{"duration":578.4000000953674,"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":341.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":341.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":919.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":435,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":341.5,"connectEnd":341.5,"connectStart":341.5,"domainLookupEnd":341.5,"domainLookupStart":341.5,"fetchStart":341.5,"redirectEnd":0,"redirectStart":0,"requestStart":341.5,"responseEnd":776.5,"responseStart":776.5,"secureConnectionStart":341.5},{"duration":578.3000001907349,"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":341.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":341.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":919.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":437.5,"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":341.7999997138977,"connectEnd":341.7999997138977,"connectStart":341.7999997138977,"domainLookupEnd":341.7999997138977,"domainLookupStart":341.7999997138977,"fetchStart":341.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":341.7999997138977,"responseEnd":779.2999997138977,"responseStart":779.2999997138977,"secureConnectionStart":341.7999997138977},{"duration":772,"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":342.69999980926514,"connectEnd":342.69999980926514,"connectStart":342.69999980926514,"domainLookupEnd":342.69999980926514,"domainLookupStart":342.69999980926514,"fetchStart":342.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":342.69999980926514,"responseEnd":1114.6999998092651,"responseStart":1114.6999998092651,"secureConnectionStart":342.69999980926514},{"duration":1186.7000002861023,"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":342.7999997138977,"connectEnd":342.7999997138977,"connectStart":342.7999997138977,"domainLookupEnd":342.7999997138977,"domainLookupStart":342.7999997138977,"fetchStart":342.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":342.7999997138977,"responseEnd":1529.5,"responseStart":1529.5,"secureConnectionStart":342.7999997138977},{"duration":441.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":989.6999998092651,"connectEnd":989.6999998092651,"connectStart":989.6999998092651,"domainLookupEnd":989.6999998092651,"domainLookupStart":989.6999998092651,"fetchStart":989.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":989.6999998092651,"responseEnd":1431.5,"responseStart":1431.5,"secureConnectionStart":989.6999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":52,"responseStart":241,"responseEnd":302,"domLoading":321,"domInteractive":1668,"domContentLoadedEventStart":1668,"domContentLoadedEventEnd":1715,"domComplete":2202,"loadEventStart":2202,"loadEventEnd":2203,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1635.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1636.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1637.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1639},{"name":"activityTabFullyLoaded","time":1726.5999999046326}],"measures":[],"correlationId":"7fb075a6a59f3c","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
holyfoot, monty or serg please provide examples for this feature - I can't find any tests, and the documentation added to the page in:
https://mariadb.com/kb/en/library/xa-transactions/+revision/64274/64269/
and
https://mariadb.com/kb/en/library/xa-transactions/+revision/64269/25115/
is not correct or sufficient. For example,
XA RECOVER FORMAT=SQL;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SQL' at line 1
If I run the two forms, all I see is a difference in quotes, and I'm not sure how that's helpful:
XA RECOVER FORMAT='SQL';
+----------+--------------+--------------+--------+
| formatID | gtrid_length | bqual_length | data |
+----------+--------------+--------------+--------+
| 1 | 4 | 0 | 'test' |
+----------+--------------+--------------+--------+
XA RECOVER FORMAT='RAW';
+----------+--------------+--------------+------+
| formatID | gtrid_length | bqual_length | data |
+----------+--------------+--------------+------+
| 1 | 4 | 0 | test |
+----------+--------------+--------------+------+