We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb0cd72 + bea5711 commit 0f03329Copy full SHA for 0f03329
pkg/sql/logictest/testdata/logic_test/grant_in_txn
@@ -191,6 +191,14 @@ GRANT role_bar TO role_foo WITH ADMIN OPTION;
191
statement ok
192
GRANT role_foo TO testuser WITH ADMIN OPTION;
193
194
+# GRANTS only wait for the new version to be visible, but future schema changes
195
+# can retry errors if the old version is in use, due to the two version invariant.
196
+retry
197
+query I
198
+SELECT count(*) FROM system.lease WHERE desc_id = 'system.role_members'::REGCLASS::OID GROUP BY desc_id, version;
199
+----
200
+1
201
+
202
# switch to testuser
203
204
user testuser
0 commit comments