Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/sql/logictest/testdata/logic_test/grant_in_txn
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ GRANT role_bar TO role_foo WITH ADMIN OPTION;
statement ok
GRANT role_foo TO testuser WITH ADMIN OPTION;

# GRANTS only wait for the new version to be visible, but future schema changes
# can retry errors if the old version is in use, due to the two version invariant.
retry
query I
SELECT count(*) FROM system.lease WHERE desc_id = 'system.role_members'::REGCLASS::OID GROUP BY desc_id, version;
----
1

# switch to testuser

user testuser
Expand Down
Loading