Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit cadf77c

Browse files
committed
whitelist permanent views
1 parent be325ec commit cadf77c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sqld/src/query_analysis.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ impl StmtKind {
4747
| Stmt::Delete { .. }
4848
| Stmt::DropTable { .. }
4949
| Stmt::AlterTable { .. }
50-
| Stmt::CreateIndex { .. },
50+
| Stmt::CreateIndex { .. }
51+
// only support non-temp views for now. We don't have a mecanism to sync
52+
// connection state between the primary and the replica right now.
53+
| Stmt::CreateView { temporary: false, .. }
5154
) => Some(Self::Write),
5255
Cmd::Stmt(Stmt::Select { .. }) => Some(Self::Read),
5356
Cmd::Stmt(Stmt::Pragma { .. }) => Some(Self::Other),

0 commit comments

Comments
 (0)