Skip to content

Commit 7011c30

Browse files
committed
translated some grant statements
1 parent 871d26e commit 7011c30

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

integration-tests/go-sql-server-driver/tests/sql-server-cluster-read-only.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tests:
4040
queries:
4141
- exec: 'CREATE USER "brian" WITH PASSWORD ''brianspassword'''
4242
error_match: 'database server is set to read only mode'
43-
- exec: 'GRANT ALL ON *.* TO "aaron"'
43+
- exec: 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "aaron"'
4444
error_match: 'database server is set to read only mode'
4545
- name: create database cannot be run on standby
4646
skip: "cluster replication not yet implemented in Doltgres"

integration-tests/go-sql-server-driver/tests/sql-server-cluster-users-and-grants.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tests:
4444
- exec: 'create table vals (i int primary key)'
4545
- exec: 'insert into vals values (0),(1),(2),(3),(4)'
4646
- exec: 'create user aaron with password ''aaronspassword'''
47-
- exec: 'grant ALL ON *.* to aaron'
47+
- exec: 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO aaron'
4848
- exec: 'insert into vals values (5),(6),(7),(8),(9)'
4949
- on: server1
5050
user: 'aaron'
@@ -105,9 +105,9 @@ tests:
105105
- exec: 'create table vals (i int primary key)'
106106
- exec: 'insert into vals values (0),(1),(2),(3),(4)'
107107
- exec: 'create user aaron with password ''aaronspassword'''
108-
- exec: 'grant ALL ON *.* to aaron'
108+
- exec: 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO aaron'
109109
- exec: 'create user brian with password ''brianpassword'''
110-
- exec: 'grant ALL ON *.* to brian'
110+
- exec: 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO brian'
111111
- exec: 'delete from dolt_branch_control'
112112
- exec: 'insert into dolt_branch_control values (''repo1'', ''main'', ''aaron'', ''%'', ''admin'')'
113113
- on: server1
@@ -385,9 +385,9 @@ tests:
385385
- exec: 'create table vals (i int primary key)'
386386
- exec: 'insert into vals values (0),(1),(2),(3),(4)'
387387
- exec: 'create user aaron with password ''aaronspassword'''
388-
- exec: 'grant ALL ON *.* to aaron'
388+
- exec: 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO aaron'
389389
- exec: 'create user brian with password ''brianpassword'''
390-
- exec: 'grant ALL ON *.* to brian'
390+
- exec: 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO brian'
391391
- exec: 'delete from dolt_branch_control'
392392
- exec: 'insert into dolt_branch_control values (''repo1'', ''main'', ''aaron'', ''%'', ''admin'')'
393393
- on: server2

0 commit comments

Comments
 (0)