Skip to content

Commit c533882

Browse files
authored
Merge pull request #656 from erizocosmico/upgrade/mysql-server-unused-cols
vendor: upgrade go-mysql-server
2 parents 2fa6457 + 0da8f65 commit c533882

File tree

10 files changed

+300
-8
lines changed

10 files changed

+300
-8
lines changed

Gopkg.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[constraint]]
22
name = "gopkg.in/src-d/go-mysql-server.v0"
3-
revision = "b8d84bffc83447b4f8f283e07b4ef2b97c4b22e3"
3+
revision = "ac598027ca4498f318051bcb79ca5b4231faf733"
44

55
[[constraint]]
66
name = "github.com/jessevdk/go-flags"

docs/using-gitbase/functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ Also, if you want to retrieve values from a non common property, you can pass it
9595
9696
## Standard functions
9797

98-
You can check standard functions in [`go-mysql-server` documentation](https://github.com/src-d/go-mysql-server/tree/b8d84bffc83447b4f8f283e07b4ef2b97c4b22e3#custom-functions).
98+
You can check standard functions in [`go-mysql-server` documentation](https://github.com/src-d/go-mysql-server/tree/ac598027ca4498f318051bcb79ca5b4231faf733#custom-functions).

docs/using-gitbase/indexes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ and for the second query also two indexes will be used and the result will be a
2626

2727
You can find some more examples in the [examples](./examples.md#create-an-index-for-columns-on-a-table) section.
2828

29-
See [go-mysql-server](https://github.com/src-d/go-mysql-server/tree/b8d84bffc83447b4f8f283e07b4ef2b97c4b22e3#indexes) documentation for more details
29+
See [go-mysql-server](https://github.com/src-d/go-mysql-server/tree/ac598027ca4498f318051bcb79ca5b4231faf733#indexes) documentation for more details
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## Supported clients
22

3-
To see the supported MySQL clients and examples about how to use them, take a look [here](https://github.com/src-d/go-mysql-server/blob/b8d84bffc83447b4f8f283e07b4ef2b97c4b22e3/SUPPORTED_CLIENTS.md).
3+
To see the supported MySQL clients and examples about how to use them, take a look [here](https://github.com/src-d/go-mysql-server/blob/ac598027ca4498f318051bcb79ca5b4231faf733/SUPPORTED_CLIENTS.md).
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## Supported syntax
22

3-
To see the SQL subset currently supported take a look at [this list](https://github.com/src-d/go-mysql-server/blob/b8d84bffc83447b4f8f283e07b4ef2b97c4b22e3/SUPPORTED.md) from [src-d/go-mysql-server](https://github.com/src-d/go-mysql-server).
3+
To see the SQL subset currently supported take a look at [this list](https://github.com/src-d/go-mysql-server/blob/ac598027ca4498f318051bcb79ca5b4231faf733/SUPPORTED.md) from [src-d/go-mysql-server](https://github.com/src-d/go-mysql-server).

integration_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,14 @@ func TestUastQueries(t *testing.T) {
328328

329329
_ = testCases
330330

331+
var pid uint64
331332
for _, c := range testCases {
333+
pid++
332334
t.Run(c.query, func(t *testing.T) {
333335
require := require.New(t)
334336

335337
session := gitbase.NewSession(pool)
336-
ctx := sql.NewContext(context.TODO(), sql.WithSession(session))
338+
ctx := sql.NewContext(context.TODO(), sql.WithSession(session), sql.WithPid(pid))
337339

338340
_, iter, err := engine.Query(ctx, c.query)
339341
require.NoError(err)

vendor/gopkg.in/src-d/go-mysql-server.v0/sql/analyzer/optimization_rules.go

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-mysql-server.v0/sql/analyzer/prune_columns.go

+285
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-mysql-server.v0/sql/analyzer/rules.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)