Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #656 from erizocosmico/upgrade/mysql-server-unused…
…-cols

vendor: upgrade go-mysql-server
  • Loading branch information
ajnavarro committed Dec 17, 2018
2 parents 2fa6457 + 0da8f65 commit c533882
Show file tree
Hide file tree
Showing 10 changed files with 300 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
@@ -1,6 +1,6 @@
[[constraint]]
name = "gopkg.in/src-d/go-mysql-server.v0"
revision = "b8d84bffc83447b4f8f283e07b4ef2b97c4b22e3"
revision = "ac598027ca4498f318051bcb79ca5b4231faf733"

[[constraint]]
name = "github.com/jessevdk/go-flags"
Expand Down
2 changes: 1 addition & 1 deletion docs/using-gitbase/functions.md
Expand Up @@ -95,4 +95,4 @@ Also, if you want to retrieve values from a non common property, you can pass it
## Standard functions

You can check standard functions in [`go-mysql-server` documentation](https://github.com/src-d/go-mysql-server/tree/b8d84bffc83447b4f8f283e07b4ef2b97c4b22e3#custom-functions).
You can check standard functions in [`go-mysql-server` documentation](https://github.com/src-d/go-mysql-server/tree/ac598027ca4498f318051bcb79ca5b4231faf733#custom-functions).
2 changes: 1 addition & 1 deletion docs/using-gitbase/indexes.md
Expand Up @@ -26,4 +26,4 @@ and for the second query also two indexes will be used and the result will be a

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

See [go-mysql-server](https://github.com/src-d/go-mysql-server/tree/b8d84bffc83447b4f8f283e07b4ef2b97c4b22e3#indexes) documentation for more details
See [go-mysql-server](https://github.com/src-d/go-mysql-server/tree/ac598027ca4498f318051bcb79ca5b4231faf733#indexes) documentation for more details
2 changes: 1 addition & 1 deletion docs/using-gitbase/supported-clients.md
@@ -1,3 +1,3 @@
## Supported clients

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).
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).
2 changes: 1 addition & 1 deletion docs/using-gitbase/supported-syntax.md
@@ -1,3 +1,3 @@
## Supported syntax

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).
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).
4 changes: 3 additions & 1 deletion integration_test.go
Expand Up @@ -328,12 +328,14 @@ func TestUastQueries(t *testing.T) {

_ = testCases

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

session := gitbase.NewSession(pool)
ctx := sql.NewContext(context.TODO(), sql.WithSession(session))
ctx := sql.NewContext(context.TODO(), sql.WithSession(session), sql.WithPid(pid))

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

285 changes: 285 additions & 0 deletions vendor/gopkg.in/src-d/go-mysql-server.v0/sql/analyzer/prune_columns.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c533882

Please sign in to comment.