sqlite3-parser: box the InsertBody

This commit is contained in:
Jussi Saurio
2025-02-08 18:09:58 +02:00
parent 781aa3b5d6
commit 4faadd86b0
3 changed files with 13 additions and 13 deletions

View File

@@ -828,13 +828,13 @@ cmd ::= with(W) insert_cmd(R) INTO xfullname(X) idlist_opt(F) select(S)
let (upsert, returning) = U;
let body = InsertBody::Select(Box::new(S), upsert);
self.ctx.stmt = Some(Stmt::Insert{ with: W, or_conflict: R, tbl_name: X, columns: F,
body, returning });
body: Box::new(body), returning });
}
cmd ::= with(W) insert_cmd(R) INTO xfullname(X) idlist_opt(F) DEFAULT VALUES returning(Y).
{
let body = InsertBody::DefaultValues;
self.ctx.stmt = Some(Stmt::Insert{ with: W, or_conflict: R, tbl_name: X, columns: F,
body, returning: Y });
body: Box::new(body), returning: Y });
}
%type upsert {(Option<Upsert>, Option<Vec<ResultColumn>>)}