Skip to content

Mariadb: Parsing "CREATE TABLE … ROW_FORMAT=DEFAULT;" will throw exception #2379

@lal12

Description

@lal12

Describe the bug
Parsing "CREATE TABLE mytable (ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT) ROW_FORMAT=DEFAULT;" throws an exception:

Database Engine
MariaDB

To Reproduce

node: v20.18.3
node-sql-parser: 5.3.8

import SQLParser from 'node-sql-parser/build/mariadb.js';
new SQLParser.Parser().astify(`CREATE TABLE mytable (ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT) ROW_FORMAT=DEFAULT;`)

Expected behavior
It should parse the statement

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions