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

Commit 2c9c320

Browse files
Merge #331
331: whitelist permanent views r=MarinPostma a=MarinPostma whitelist support for permanent views. temporary view are still blacklisted, because they are tied to a specitif connection. It requires that we are able to sync the state of the connection on the primary and replica side, which we are currently unable to do. Co-authored-by: adhoc <[email protected]>
2 parents be325ec + cadf77c commit 2c9c320

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)