sqlite3-parser: Box the Expr in Detach

This commit is contained in:
Jussi Saurio
2025-02-09 13:00:58 +02:00
parent 32887518ce
commit f0d7d82e1d
2 changed files with 2 additions and 2 deletions

View File

@@ -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>}