diff --git a/pkg/sql/opt/exec/explain/testdata/gists b/pkg/sql/opt/exec/explain/testdata/gists index e44a522f2c23..ed1d8dd2e7dc 100644 --- a/pkg/sql/opt/exec/explain/testdata/gists +++ b/pkg/sql/opt/exec/explain/testdata/gists @@ -647,6 +647,7 @@ explain(shape): └── • scan table: abc@abc_pkey spans: 1+ spans + locking strength: for update explain(gist): • update │ table: abc @@ -679,6 +680,7 @@ explain(shape): └── • scan table: abc@abc_pkey spans: 1+ spans + locking strength: for update explain(gist): • upsert │ into: abc() diff --git a/pkg/sql/opt/exec/explain/testdata/gists_tpce b/pkg/sql/opt/exec/explain/testdata/gists_tpce index ba0fe225ef9f..0c96c96f0062 100644 --- a/pkg/sql/opt/exec/explain/testdata/gists_tpce +++ b/pkg/sql/opt/exec/explain/testdata/gists_tpce @@ -237,6 +237,7 @@ explain(shape): │ └── • scan │ table: last_trade@last_trade_pkey │ spans: 1+ spans +│ locking strength: for update │ ├── • subquery │ │ id: @S2 diff --git a/pkg/sql/opt/testutils/opttester/opt_tester.go b/pkg/sql/opt/testutils/opttester/opt_tester.go index 37679979aca5..08dd81b80d20 100644 --- a/pkg/sql/opt/testutils/opttester/opt_tester.go +++ b/pkg/sql/opt/testutils/opttester/opt_tester.go @@ -297,7 +297,6 @@ func New(catalog cat.Catalog, sqlStr string) *OptTester { ot.evalCtx.SessionData().UserProto = username.MakeSQLUsernameFromPreNormalizedString("opttester").EncodeProto() ot.evalCtx.SessionData().Database = "defaultdb" ot.evalCtx.SessionData().ZigzagJoinEnabled = true - ot.evalCtx.SessionData().ImplicitSelectForUpdate = false return ot }