forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: use SQLInstanceID in EXPLAIN instead of OptionalNodeIDErr
Tenants would previously not be able to run EXPLAIN because they wouldn't have access to a NodeID. This is now fixed by using the SQLInstanceID instead, which will provide an expected SQL-scoped identifier in a multi-tenant environment and will translate to a NodeID in a single-tenant environment. Release note: None (multitenancy-related change)
- Loading branch information
Showing
5 changed files
with
7 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# LogicTest: !3node-tenant | ||
statement ok | ||
CREATE TABLE users ( | ||
id INT PRIMARY KEY, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# LogicTest: !3node-tenant | ||
# Tests for the implicit one row, zero column values operator. | ||
query I | ||
SELECT 1 | ||
|