mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-21 09:04:19 +01:00
sqlite3-parser: box the create table body
This commit is contained in:
@@ -112,7 +112,7 @@ pub enum Stmt {
|
||||
/// table name
|
||||
tbl_name: QualifiedName,
|
||||
/// table body
|
||||
body: CreateTableBody,
|
||||
body: Box<CreateTableBody>,
|
||||
},
|
||||
/// `CREATE TRIGGER`
|
||||
CreateTrigger {
|
||||
|
||||
@@ -109,7 +109,7 @@ cmd ::= ROLLBACK trans_opt(Y) TO savepoint_opt nm(X). {
|
||||
///////////////////// The CREATE TABLE statement ////////////////////////////
|
||||
//
|
||||
cmd ::= createkw temp(T) TABLE ifnotexists(E) fullname(Y) create_table_args(X). {
|
||||
self.ctx.stmt = Some(Stmt::CreateTable{ temporary: T, if_not_exists: E, tbl_name: Y, body: X });
|
||||
self.ctx.stmt = Some(Stmt::CreateTable{ temporary: T, if_not_exists: E, tbl_name: Y, body: Box::new(X) });
|
||||
}
|
||||
createkw(A) ::= CREATE(A).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user