[MDEV-6055] FusionIO: Unexpected syntax error on attempt to create a table with ATOMIC_WRITES=ON option Created: 2014-04-09  Updated: 2014-04-16  Resolved: 2014-04-16

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: N/A
Fix Version/s: 10.0.15-FusionIO

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Won't Fix Votes: 0
Labels: fusion-io


 Description   

CREATE TABLE t4 (i int) ENGINE=InnoDB ATOMIC_WRITES=ON;
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 'ON' at line 1

But the following is recognized:

CREATE TABLE t5 (i int) ENGINE=InnoDB ATOMIC_WRITES='ON';
CREATE TABLE t6 (i int) ENGINE=InnoDB ATOMIC_WRITES=OFF;

This is unusual and inconsistent.

revision-id: jplindst@mariadb.org-20140328064402-8xr2e8ck5oqatto2
date: 2014-03-28 08:44:02 +0200
build-date: 2014-04-09 22:27:11 +0300
revno: 3970
branch-nick: 10.0-FusionIO



 Comments   
Comment by Jan Lindström (Inactive) [ 2014-04-16 ]

Can't help, ON is reserved word on SQL, thus it can't be used here an you must use 'ON' instead. OFF is not a reserved work on SQL thus both OFF and 'OFF' are valid.

Generated at Thu Feb 08 07:09:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.