mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-30 14:34:22 +01:00
sqlite3-parser: Box the Expr in Detach
This commit is contained in:
@@ -143,7 +143,7 @@ pub enum Stmt {
|
||||
/// `DELETE`
|
||||
Delete(Box<Delete>),
|
||||
/// `DETACH DATABASE`: db name
|
||||
Detach(Expr), // TODO distinction between DETACH and DETACH DATABASE
|
||||
Detach(Box<Expr>), // TODO distinction between DETACH and DETACH DATABASE
|
||||
/// `DROP INDEX`
|
||||
DropIndex {
|
||||
/// `IF EXISTS`
|
||||
|
||||
@@ -1279,7 +1279,7 @@ cmd ::= ATTACH database_kw_opt expr(F) AS expr(D) key_opt(K). {
|
||||
self.ctx.stmt = Some(Stmt::Attach{ expr: Box::new(F), db_name: Box::new(D), key: K.map(Box::new) });
|
||||
}
|
||||
cmd ::= DETACH database_kw_opt expr(D). {
|
||||
self.ctx.stmt = Some(Stmt::Detach(D));
|
||||
self.ctx.stmt = Some(Stmt::Detach(Box::new(D)));
|
||||
}
|
||||
|
||||
%type key_opt {Option<Expr>}
|
||||
|
||||
Reference in New Issue
Block a user