Skip to content

Commit f73fb81

Browse files
workload: set allow_unsafe_internals for workload commands
Previously some workload run and init commands would fail if and when they try to access crdb_internal or system tables (if the allow_unsafe_internals session var is globally defaulted to false - which will be the case in 26.1) This commit modifies all connections that workload commands use to have the allow_unsafe_internals session variable set to on. Fixes: #152755 Release note: None
1 parent d71deec commit f73fb81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/workload/connection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func SanitizeUrls(gen Generator, connFlags *ConnFlags, urls []string) (string, e
118118
func SetUrlConnVars(gen Generator, connFlags *ConnFlags, urls []string) error {
119119
vars := make(map[string]string)
120120
vars["application_name"] = gen.Meta().Name
121+
vars["allow_unsafe_internals"] = "true"
121122
if connFlags != nil {
122123
if connFlags.IsoLevel != "" {
123124
// As a convenience, replace underscores with spaces. This allows users of

0 commit comments

Comments
 (0)