Skip to content

Commit

Permalink
disallow explain pragma (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinPostma authored Jun 16, 2023
1 parent 16834be commit 1e1c4c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libsql-server/sqld/src/query_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ fn write_if_not_reserved(name: &QualifiedName) -> Option<StmtKind> {
impl StmtKind {
fn kind(cmd: &Cmd) -> Option<Self> {
match cmd {
Cmd::Explain(Stmt::Pragma(name, body)) => Self::pragma_kind(name, body.as_ref()),
Cmd::Explain(_) => Some(Self::Other),
Cmd::ExplainQueryPlan(_) => Some(Self::Other),
Cmd::Stmt(Stmt::Begin { .. }) => Some(Self::TxnBegin),
Expand Down

0 comments on commit 1e1c4c1

Please sign in to comment.