diff --git a/go.mod b/go.mod index c526d2d2..9b219d4c 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/sethvargo/go-limiter v0.7.2 github.com/spf13/cobra v1.7.0 github.com/stretchr/testify v1.8.2 - github.com/tablelandnetwork/sqlparser v0.0.0-20240529190608-e3776575020d + github.com/tablelandnetwork/sqlparser v0.0.0-20240816204758-a982c05b74be github.com/textileio/cli v1.0.2 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.37.0 go.opentelemetry.io/otel v1.14.0 diff --git a/go.sum b/go.sum index af5f05ee..bff54324 100644 --- a/go.sum +++ b/go.sum @@ -1299,6 +1299,10 @@ github.com/tablelandnetwork/sqlparser v0.0.0-20240523182602-af3edf08e3db h1:4/eO github.com/tablelandnetwork/sqlparser v0.0.0-20240523182602-af3edf08e3db/go.mod h1:S+M/v3Q8X+236kQxMQziFcLId2Cscb1LzW06IUVhljE= github.com/tablelandnetwork/sqlparser v0.0.0-20240529190608-e3776575020d h1:Xhc6wudmyItX8Pvr+Z2SCzOmrf/zda5sX1jCgUySNRg= github.com/tablelandnetwork/sqlparser v0.0.0-20240529190608-e3776575020d/go.mod h1:S+M/v3Q8X+236kQxMQziFcLId2Cscb1LzW06IUVhljE= +github.com/tablelandnetwork/sqlparser v0.0.0-20240816141915-b33ac93c827a h1:Laz5yY58N2hUxDdVSejR3mIg0fGAjpD4JktMkgY6dDk= +github.com/tablelandnetwork/sqlparser v0.0.0-20240816141915-b33ac93c827a/go.mod h1:S+M/v3Q8X+236kQxMQziFcLId2Cscb1LzW06IUVhljE= +github.com/tablelandnetwork/sqlparser v0.0.0-20240816204758-a982c05b74be h1:g4/tys/pCKgqUUFg/zsvmS1GxoaEJjDFW4bNVLwbWx8= +github.com/tablelandnetwork/sqlparser v0.0.0-20240816204758-a982c05b74be/go.mod h1:S+M/v3Q8X+236kQxMQziFcLId2Cscb1LzW06IUVhljE= github.com/tchap/go-patricia v2.2.6+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I= github.com/textileio/cli v1.0.2 h1:qSp/x4d/9SZ93TxhgZnE5okRKqzqHqrzAwKAPjuPw50= github.com/textileio/cli v1.0.2/go.mod h1:vTlCvvVyOmXXLwddCcBg3PDavfUsCkRBZoyr6Nu1lkc= diff --git a/pkg/parsing/impl/validator_test.go b/pkg/parsing/impl/validator_test.go index 770f9f4d..111d6990 100644 --- a/pkg/parsing/impl/validator_test.go +++ b/pkg/parsing/impl/validator_test.go @@ -337,16 +337,6 @@ func TestWriteQuery(t *testing.T) { query: "update foo set a=1 from bar", expErrType: ptr2ErrInvalidSyntax(), }, - { - name: "update where subquery", - query: "update foo set a=1 where a=(select a from bar limit 1) and b=1", - expErrType: ptr2ErrSubquery(), - }, - { - name: "delete where subquery", - query: "delete from foo where a=(select a from bar limit 1)", - expErrType: ptr2ErrSubquery(), - }, // Disallow RETURNING clauses { @@ -994,11 +984,6 @@ func ptr2ErrKeywordIsNotAllowed() **sqlparser.ErrKeywordIsNotAllowed { return &e } -func ptr2ErrSubquery() **sqlparser.ErrStatementContainsSubquery { - var e *sqlparser.ErrStatementContainsSubquery - return &e -} - func ptr2ErrNoTopLevelCreate() **parsing.ErrNoTopLevelCreate { var e *parsing.ErrNoTopLevelCreate return &e