cockroachdb / cockroachdb/cockroach

stmtbundle: handle multi-line cluster setting values in recreate

Open
#119,786 1 comment 0 reactions 0 assignees View on GitHub
A-sql-debug-bundle C-bug E-quick-win O-support P-3 T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

When attempting to recreate a bundle from [here](https://github.com/cockroachlabs/support/issues/2846#issue-2161547699), we get a syntax error because the cluster setting `sql.log.user_audit` has non-default value that is multi-line. We should handle such cases gracefully.

A related improvement is to handle non-default session variables like `SET timezone = Etc/UTC` correctly too (currently missing quotes).

Jira issue: CRDB-36314

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.