Skip to content

Commit c5a1482

Browse files
authored
Merge pull request #915 from dolthub/daylon/planbuilder-bump
[no-release-notes] GMS Planbuilder Auth bump
2 parents 78eb7c7 + 967ece1 commit c5a1482

File tree

13 files changed

+14
-71
lines changed

13 files changed

+14
-71
lines changed

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ require (
88
github.com/PuerkitoBio/goquery v1.8.1
99
github.com/cockroachdb/apd/v2 v2.0.3-0.20200518165714-d020e156310a
1010
github.com/cockroachdb/errors v1.7.5
11-
github.com/dolthub/dolt/go v0.40.5-0.20241102040242-530b5771ea74
12-
github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi v0.0.0-20240827111219-e4bb9ca3442d
11+
github.com/dolthub/dolt/go v0.40.5-0.20241104143128-c2bb78c109df
12+
github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi v0.0.0-20241104143128-c2bb78c109df
1313
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2
1414
github.com/dolthub/go-icu-regex v0.0.0-20240916130659-0118adc6b662
15-
github.com/dolthub/go-mysql-server v0.18.2-0.20241101230148-2766041c6e96
15+
github.com/dolthub/go-mysql-server v0.18.2-0.20241104142123-e00c563047c0
1616
github.com/dolthub/sqllogictest/go v0.0.0-20240618184124-ca47f9354216
17-
github.com/dolthub/vitess v0.0.0-20241028204000-267861bc75a0
17+
github.com/dolthub/vitess v0.0.0-20241104125316-860772ba6683
1818
github.com/fatih/color v1.13.0
1919
github.com/goccy/go-json v0.10.2
2020
github.com/gogo/protobuf v1.3.2

go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,18 +214,18 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZm
214214
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
215215
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
216216
github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
217-
github.com/dolthub/dolt/go v0.40.5-0.20241102040242-530b5771ea74 h1:Yv/fLhDt22lLJQ3VW4iXcg3CUWG0fhAMPR/qn/PNwck=
218-
github.com/dolthub/dolt/go v0.40.5-0.20241102040242-530b5771ea74/go.mod h1:NecH5h4tFar7J3VcALwVnOzf7ILMKAAIdp5kFlT5w/I=
219-
github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi v0.0.0-20240827111219-e4bb9ca3442d h1:RZkQeYOrDrOWzCxaP2ttkvg4E2TM9n8lnEsIBLKjqkM=
220-
github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi v0.0.0-20240827111219-e4bb9ca3442d/go.mod h1:L5RDYZbC9BBWmoU2+TjTekeqqhFXX5EqH9ln00O0stY=
217+
github.com/dolthub/dolt/go v0.40.5-0.20241104143128-c2bb78c109df h1:mz7NOUjQY8A1XxGyV9eE114usQ8vk08ncPjPT4G5wx8=
218+
github.com/dolthub/dolt/go v0.40.5-0.20241104143128-c2bb78c109df/go.mod h1:j8ygGZQrrCQxDBmo0z2O5cj1Wja4DA26/aMjerDGIhw=
219+
github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi v0.0.0-20241104143128-c2bb78c109df h1:xafyaNR+hSk5TwOhmNkhhrmOZKIOkxAOCiIEUzlIybc=
220+
github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi v0.0.0-20241104143128-c2bb78c109df/go.mod h1:L5RDYZbC9BBWmoU2+TjTekeqqhFXX5EqH9ln00O0stY=
221221
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2 h1:u3PMzfF8RkKd3lB9pZ2bfn0qEG+1Gms9599cr0REMww=
222222
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2/go.mod h1:mIEZOHnFx4ZMQeawhw9rhsj+0zwQj7adVsnBX7t+eKY=
223223
github.com/dolthub/fslock v0.0.3 h1:iLMpUIvJKMKm92+N1fmHVdxJP5NdyDK5bK7z7Ba2s2U=
224224
github.com/dolthub/fslock v0.0.3/go.mod h1:QWql+P17oAAMLnL4HGB5tiovtDuAjdDTPbuqx7bYfa0=
225225
github.com/dolthub/go-icu-regex v0.0.0-20240916130659-0118adc6b662 h1:aC17hZD6iwzBwwfO5M+3oBT5E5gGRiQPdn+vzpDXqIA=
226226
github.com/dolthub/go-icu-regex v0.0.0-20240916130659-0118adc6b662/go.mod h1:KPUcpx070QOfJK1gNe0zx4pA5sicIK1GMikIGLKC168=
227-
github.com/dolthub/go-mysql-server v0.18.2-0.20241101230148-2766041c6e96 h1:pL21juk8jiM0qyvhjncyhC0UvNCspFlqiE9ETYmeVtc=
228-
github.com/dolthub/go-mysql-server v0.18.2-0.20241101230148-2766041c6e96/go.mod h1:jlzVUA+tsjDw6YKbhRsCLHT3OVO6nn4BWrUanECTo3s=
227+
github.com/dolthub/go-mysql-server v0.18.2-0.20241104142123-e00c563047c0 h1:89pFCcn78El3hYvNK11Vx9ez2bQAGSrMu6CLFO0BdXQ=
228+
github.com/dolthub/go-mysql-server v0.18.2-0.20241104142123-e00c563047c0/go.mod h1:0xWs/FBE4xlhlOsAWoGh24SDRHemT7/U1nApu7SNRXg=
229229
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63 h1:OAsXLAPL4du6tfbBgK0xXHZkOlos63RdKYS3Sgw/dfI=
230230
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63/go.mod h1:lV7lUeuDhH5thVGDCKXbatwKy2KW80L4rMT46n+Y2/Q=
231231
github.com/dolthub/ishell v0.0.0-20240701202509-2b217167d718 h1:lT7hE5k+0nkBdj/1UOSFwjWpNxf+LCApbRHgnCA17XE=
@@ -238,8 +238,8 @@ github.com/dolthub/sqllogictest/go v0.0.0-20240618184124-ca47f9354216 h1:JWkKRE4
238238
github.com/dolthub/sqllogictest/go v0.0.0-20240618184124-ca47f9354216/go.mod h1:e/FIZVvT2IR53HBCAo41NjqgtEnjMJGKca3Y/dAmZaA=
239239
github.com/dolthub/swiss v0.1.0 h1:EaGQct3AqeP/MjASHLiH6i4TAmgbG/c4rA6a1bzCOPc=
240240
github.com/dolthub/swiss v0.1.0/go.mod h1:BeucyB08Vb1G9tumVN3Vp/pyY4AMUnr9p7Rz7wJ7kAQ=
241-
github.com/dolthub/vitess v0.0.0-20241028204000-267861bc75a0 h1:eeKypNsi1nQmjWxSAAWT6tvRsDWdmll03BozAUUIE4E=
242-
github.com/dolthub/vitess v0.0.0-20241028204000-267861bc75a0/go.mod h1:uBvlRluuL+SbEWTCZ68o0xvsdYZER3CEG/35INdzfJM=
241+
github.com/dolthub/vitess v0.0.0-20241104125316-860772ba6683 h1:2/RJeUfNAXS7mbBnEr9C36htiCJHk5XldDPzhxtEsME=
242+
github.com/dolthub/vitess v0.0.0-20241104125316-860772ba6683/go.mod h1:uBvlRluuL+SbEWTCZ68o0xvsdYZER3CEG/35INdzfJM=
243243
github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
244244
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
245245
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=

server/node/alter_role.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ var ErrVitessChildCount = errors.NewKind("invalid vitess child count, expected `
3939
var _ sql.ExecSourceRel = (*AlterRole)(nil)
4040
var _ vitess.Injectable = (*AlterRole)(nil)
4141

42-
// CheckPrivileges implements the interface sql.ExecSourceRel.
43-
func (c *AlterRole) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool {
44-
return true
45-
}
46-
4742
// Children implements the interface sql.ExecSourceRel.
4843
func (c *AlterRole) Children() []sql.Node {
4944
return nil

server/node/context_root_finalizer.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ func NewContextRootFinalizer(child sql.Node) *ContextRootFinalizer {
3535
}
3636
}
3737

38-
// CheckPrivileges implements the interface sql.ExecSourceRel.
39-
func (rf *ContextRootFinalizer) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool {
40-
return rf.child.CheckPrivileges(ctx, opChecker)
41-
}
42-
4338
// Child returns the single child of this node
4439
func (rf *ContextRootFinalizer) Child() sql.Node {
4540
return rf.child

server/node/copy_from.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import (
3030
"github.com/dolthub/doltgresql/postgres/parser/sem/tree"
3131
)
3232

33+
// TODO: Privilege Checking: https://www.postgresql.org/docs/15/sql-copy.html
34+
3335
// CopyFrom handles the COPY ... FROM ... statement.
3436
type CopyFrom struct {
3537
DatabaseName string
@@ -64,13 +66,6 @@ func NewCopyFrom(databaseName string, tableName doltdb.TableName, options tree.C
6466
}
6567
}
6668

67-
// CheckPrivileges implements the interface sql.ExecSourceRel.
68-
func (cf *CopyFrom) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool {
69-
// https://www.postgresql.org/docs/15/sql-copy.html
70-
// ... database superusers or users who are granted one of the roles `pg_read_server_files`, `pg_write_server_files`, or `pg_execute_server_program` ...
71-
return true
72-
}
73-
7469
// Children implements the interface sql.ExecSourceRel.
7570
func (cf *CopyFrom) Children() []sql.Node {
7671
return nil

server/node/create_domain.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ type CreateDomain struct {
4141
var _ sql.ExecSourceRel = (*CreateDomain)(nil)
4242
var _ vitess.Injectable = (*CreateDomain)(nil)
4343

44-
// CheckPrivileges implements the interface sql.ExecSourceRel.
45-
func (c *CreateDomain) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool {
46-
return true
47-
}
48-
4944
// Children implements the interface sql.ExecSourceRel.
5045
func (c *CreateDomain) Children() []sql.Node {
5146
return nil

server/node/create_role.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ type CreateRole struct {
5151
var _ sql.ExecSourceRel = (*CreateRole)(nil)
5252
var _ vitess.Injectable = (*CreateRole)(nil)
5353

54-
// CheckPrivileges implements the interface sql.ExecSourceRel.
55-
func (c *CreateRole) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool {
56-
return true
57-
}
58-
5954
// Children implements the interface sql.ExecSourceRel.
6055
func (c *CreateRole) Children() []sql.Node {
6156
return nil

server/node/create_sequence.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ func NewCreateSequence(ifNotExists bool, schema string, sequence *sequences.Sequ
4646
}
4747
}
4848

49-
// CheckPrivileges implements the interface sql.ExecSourceRel.
50-
func (c *CreateSequence) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool {
51-
// TODO: implement privilege checking
52-
return true
53-
}
54-
5549
// Children implements the interface sql.ExecSourceRel.
5650
func (c *CreateSequence) Children() []sql.Node {
5751
return nil

server/node/create_table.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ func NewCreateTable(createTable *plan.CreateTable, sequences []*CreateSequence)
3838
}
3939
}
4040

41-
// CheckPrivileges implements the interface sql.ExecSourceRel.
42-
func (c *CreateTable) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool {
43-
return c.gmsCreateTable.CheckPrivileges(ctx, opChecker)
44-
}
45-
4641
// Children implements the interface sql.ExecSourceRel.
4742
func (c *CreateTable) Children() []sql.Node {
4843
return c.gmsCreateTable.Children()

server/node/discard.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ type DiscardStatement struct{}
2727
var _ vitess.Injectable = DiscardStatement{}
2828
var _ sql.ExecSourceRel = DiscardStatement{}
2929

30-
// CheckPrivileges implements the interface sql.ExecSourceRel.
31-
func (d DiscardStatement) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool {
32-
return true
33-
}
34-
3530
// Children implements the interface sql.ExecSourceRel.
3631
func (d DiscardStatement) Children() []sql.Node {
3732
return nil

0 commit comments

Comments
 (0)