[MDEV-14922] XA RECOVER FORMAT='SQL' requires quotes while XA RECOVER FORMAT=RAW does not Created: 2018-01-11  Updated: 2023-04-27

Status: Confirmed
Project: MariaDB Server
Component/s: XA
Affects Version/s: 10.3
Fix Version/s: 10.4

Type: Bug Priority: Minor
Reporter: Ian Gilfillan Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-14593 human-readable XA RECOVER Closed
relates to MDEV-14913 Document human-readable XA RECOVER Closed

 Description   

xa start 'tr1#$', 'bq', 3;
insert t1 values (40);
xa end 'tr1#$', 'bq', 3;
xa prepare 'tr1#$', 'bq', 3;
xa recover format='RAW';
+----------+--------------+--------------+---------+
| formatID | gtrid_length | bqual_length | data    |
+----------+--------------+--------------+---------+
|        3 |            5 |            2 | tr1#$bq |
+----------+--------------+--------------+---------+
 
xa recover format='SQL';
+----------+--------------+--------------+-------------------------+
| formatID | gtrid_length | bqual_length | data                    |
+----------+--------------+--------------+-------------------------+
|        3 |            5 |            2 | X'7472312324',X'6271',3 |
+----------+--------------+--------------+-------------------------+
 
xa recover format=RAW;
+----------+--------------+--------------+---------+
| formatID | gtrid_length | bqual_length | data    |
+----------+--------------+--------------+---------+
|        3 |            5 |            2 | tr1#$bq |
+----------+--------------+--------------+---------+
 
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 



 Comments   
Comment by Elena Stepanova [ 2018-01-13 ]

SQL is documented as a reserved word, so it's probably not very surprising, but since we seem to be trying to allow everything that doesn't cause ambiguity, assigning it to serg to confirm whether it's intentional.

Generated at Thu Feb 08 08:17:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.