Skip to content

Commit b66dc53

Browse files
authored
vendor: upgrade go-mysql-server (#917)
vendor: upgrade go-mysql-server
2 parents 656ac46 + 4911ecf commit b66dc53

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- Varchar type.
12+
- FIRST and LAST aggregations.
13+
914
### Changed
1015

1116
- Errors now report the repository causing the error, if possible.
1217
- Now non rooted siva files support old siva rooted repositories.
18+
- Traces now have a root span.
19+
20+
### Fixed
21+
22+
- Fixed the behaviour of limit and offset.
23+
- Resolution of HAVING nodes.
1324

1425
## [0.22.0] - 2019-07-03
1526

docs/using-gitbase/functions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,16 @@ These are all functions that are available because they are implemented in `go-m
4343
|`DAYOFMONTH(date)`|Return the day of the month (0-31).|
4444
|`DAYOFWEEK(date)`|Returns the day of the week of the given date.|
4545
|`DAYOFYEAR(date)`|Returns the day of the year of the given date.|
46-
|`FLOOR(number)`|Return the largest integer value that is less than or equal to `number`.|
46+
|`FIRST(expr)`|Returns the first value in a sequence of elements of an aggregation.|
47+
|`FLOOR(number)`|Returns the largest integer value that is less than or equal to `number`.|
4748
|`FROM_BASE64(str)`|Decodes the base64-encoded string str.|
4849
|`GREATEST(...)`|Returns the greatest numeric or string value.|
4950
|`HOUR(date)`|Returns the hours of the given date.|
5051
|`IFNULL(expr1, expr2)`|If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2.|
5152
|`IS_BINARY(blob)`|Returns whether a BLOB is a binary file or not.|
5253
|`JSON_EXTRACT(json_doc, path, ...)`|Extracts data from a json document using json paths. Extracting a string will result in that string being quoted. To avoid this, use `JSON_UNQUOTE(JSON_EXTRACT(json_doc, path, ...))`.|
5354
|`JSON_UNQUOTE(json)`|Unquotes JSON value and returns the result as a utf8mb4 string.|
55+
|`LAST(expr)`|Returns the last value in a sequence of elements of an aggregation.|
5456
|`LEAST(...)`|Returns the smaller numeric or string value.|
5557
|`LENGTH(str)`|Return the length of the string in bytes.|
5658
|`LN(X)`|Return the natural logarithm of X.|

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/src-d/go-borges v0.0.0-20190628121335-da12a84d60fd
1818
github.com/src-d/go-git v4.7.0+incompatible
1919
github.com/src-d/go-git-fixtures v3.5.1-0.20190605154830-57f3972b0248+incompatible
20-
github.com/src-d/go-mysql-server v0.4.1-0.20190703085445-1538f09dbaaf
20+
github.com/src-d/go-mysql-server v0.4.1-0.20190703140603-bbae51955887
2121
github.com/stretchr/testify v1.3.0
2222
github.com/uber-go/atomic v1.4.0 // indirect
2323
github.com/uber/jaeger-client-go v2.16.0+incompatible

go.sum

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ github.com/src-d/go-git v4.7.0+incompatible h1:IYSSnbAHeKmsfbQFi9ozbid+KNh0bKjlo
223223
github.com/src-d/go-git v4.7.0+incompatible/go.mod h1:1bQciz+hn0jzPQNsYj0hDFZHLJBdV7gXE2mWhC7EkFk=
224224
github.com/src-d/go-git-fixtures v3.5.1-0.20190605154830-57f3972b0248+incompatible h1:A5bKevhs9C//Nh8QV0J+1KphEaIa25cDe1DTs/yPxDI=
225225
github.com/src-d/go-git-fixtures v3.5.1-0.20190605154830-57f3972b0248+incompatible/go.mod h1:XcIQp7L+k0pgfTqfbaTKj3kxlBv8kYOKZ/tKNXbZFLg=
226-
github.com/src-d/go-mysql-server v0.4.1-0.20190703085445-1538f09dbaaf h1:5w4Ma4svbcyGuWTqD7EoT8Yq6DAzKYmVxlIu5NruTac=
227-
github.com/src-d/go-mysql-server v0.4.1-0.20190703085445-1538f09dbaaf/go.mod h1:GO8SmBnN9LcKSXy6DYuBbqKtJvrRnHsBrlXvlVOX+NM=
226+
github.com/src-d/go-mysql-server v0.4.1-0.20190703140603-bbae51955887 h1:Oxv+RF6F0Vi20WVvL1PFBGvQJAiHQcCyXDfq2aRRnSM=
227+
github.com/src-d/go-mysql-server v0.4.1-0.20190703140603-bbae51955887/go.mod h1:GO8SmBnN9LcKSXy6DYuBbqKtJvrRnHsBrlXvlVOX+NM=
228228
github.com/src-d/go-oniguruma v1.0.0 h1:JDk5PUAjreGsGAKLsoDLNmrsaryjJ5RqT3h+Si6aw/E=
229229
github.com/src-d/go-oniguruma v1.0.0/go.mod h1:chVbff8kcVtmrhxtZ3yBVLLquXbzCS6DrxQaAK/CeqM=
230230
github.com/src-d/go-oniguruma v1.1.0 h1:EG+Nm5n2JqWUaCjtM0NtutPxU7ZN5Tp50GWrrV8bTww=
@@ -379,7 +379,6 @@ gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
379379
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
380380
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
381381
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
382-
honnef.co/go/tools v0.0.0-2019.2.1 h1:fW1wbZIKRbRK56ETe5SYloH5SdLzhXOFet2KlpRKDqg=
383382
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099 h1:XJP7lxbSxWLOMNdBE4B/STaqVy6L73o0knwj2vIlxnw=
384383
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
385384
modernc.org/mathutil v1.0.0 h1:93vKjrJopTPrtTNpZ8XIovER7iCIH1QU7wNbOQXC60I=

0 commit comments

Comments
 (0)