Skip to content

Commit

Permalink
Feat(parser): add create tablespace sql parser test case.
Browse files Browse the repository at this point in the history
Signed-off-by: Zonglei Dong <[email protected]>
  • Loading branch information
dongzl committed Aug 12, 2022
1 parent cb18739 commit a34b751
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pisa-proxy/parser/mysql/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ mod test {
"CREATE FULLTEXT INDEX idx_order_name ON t_order (name) WITH PARSER parser_name LOCK = EXCLUSIVE;",
"CREATE LOGFILE GROUP logfile_group ADD UNDOFILE 'undo_file' INITIAL_SIZE = 1M UNDO_BUFFER_SIZE = 2M REDO_BUFFER_SIZE = 3M;",
"CREATE LOGFILE GROUP logfile_group ADD UNDOFILE 'undo_file' NODEGROUP 1234, WAIT, COMMENT 'logfile_group_comment', ENGINE = 'logfile_group_engine';",
"CREATE TABLESPACE `ts1` ADD DATAFILE 'ts1.ibd' ENGINE=INNODB;",
"CREATE TABLESPACE `ts2` ADD DATAFILE 'ts2.ibd' FILE_BLOCK_SIZE = 8192 Engine=InnoDB;",
"CREATE TABLESPACE myts ADD DATAFILE 'mydata-1.dat' USE LOGFILE GROUP mylg ENGINE=NDB;",
r#"CREATE TABLESPACE ts1 ENGINE_ATTRIBUTE='{"key":"value"}';"#,
];

parser(inputs);
Expand Down

0 comments on commit a34b751

Please sign in to comment.