Skip to content

Commit

Permalink
fix(restore): wrap table names in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Leszczynski committed Jun 4, 2024
1 parent 48a1ee2 commit 4cf6c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/service/restore/worker_views.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func (w *worker) DropView(ctx context.Context, view View) error {
dropStmt := ""
switch view.Type {
case SecondaryIndex:
dropStmt = "DROP INDEX IF EXISTS %s.%s"
dropStmt = "DROP INDEX IF EXISTS %q.%q"
case MaterializedView:
dropStmt = "DROP MATERIALIZED VIEW IF EXISTS %s.%s"
dropStmt = "DROP MATERIALIZED VIEW IF EXISTS %q.%q"
}

return w.clusterSession.ExecStmt(fmt.Sprintf(dropStmt, view.Keyspace, view.View))
Expand Down

0 comments on commit 4cf6c0b

Please sign in to comment.