-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Spanner/SpanSQL: Support CREATE VIEW with Security Type DEFINER #8661
Copy link
Copy link
Closed
Labels
api: spannerIssues related to the Spanner API.Issues related to the Spanner API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.
Description
Client
Spanner spansql
Environment
Go Playground
Go Environment
Go 1.21
Code
package main
import (
"fmt"
"cloud.google.com/go/spanner/spansql"
)
func main() {
fmt.Println(spansql.ParseDDL("ddl", "CREATE VIEW myView SQL SECURITY DEFINER AS SELECT u.Name FROM Users u"))
}
https://go.dev/play/p/x_tUX5Iv8-a
Expected behavior
Parses
Actual behavior
<nil> ddl:1.32: got "DEFINER" while expecting "INVOKER"
Documentation
The security type can be either INVOKER or DEFINER
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: spannerIssues related to the Spanner API.Issues related to the Spanner API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.