Commit 79a2404
Merge cockroachdb#152981
152981: clisqlclient: ensure allow_unsafe_internals is on during metadata checks r=alyshanjahani-crl a=alyshanjahani-crl
Previously some cli commands (ex/ `cockroach sql`) would error if the `allow_unsafe_internals` session variable was set to false/off (the `allow_unsafe_internals` session var is globally defaulted to false in 26.1)
This is because constructing a `clisqlclient.sqlConn` involves performing metadata checks that access internal/system tables.
This commit ensures `allow_unsafe_internals` is true/on while doing these checks.
Fixes: cockroachdb#152754
Relase note: None
Co-authored-by: Alyshan Jahani <[email protected]>1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
439 | 456 | | |
440 | 457 | | |
441 | 458 | | |
| |||
546 | 563 | | |
547 | 564 | | |
548 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
549 | 575 | | |
550 | 576 | | |
551 | 577 | | |
| |||
0 commit comments