Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: fix CREATE AS sourcing crdb_internal.create_statements panic
Fixes #106168 Fixes a bug discovered in #105895 that caused a panic when running these statements because planner.semaCtx.NameResolver was nil: CREATE TABLE t AS SELECT * FROM crdb_internal.create_statements; CREATE MATERIALIZED VIEW v AS SELECT * FROM crdb_internal.create_statements; Release note (bug fix): Fix panic executing CREATE AS with crdb_internal.create_statements source. For example: CREATE TABLE t AS SELECT * FROM crdb_internal.create_statements; CREATE MATERIALIZED VIEW v AS SELECT * FROM crdb_internal.create_statements;
- Loading branch information