Skip to content

Commit 9675cda

Browse files
committed
vendor: upgrade go-mysql-server
Signed-off-by: Miguel Molina <[email protected]>
1 parent 9cc39b9 commit 9675cda

File tree

17 files changed

+1107
-40
lines changed

17 files changed

+1107
-40
lines changed

Gopkg.lock

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
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 = "d03de5f7c0d7b9e9920c7654efc61eabe988dabe"
3+
revision = "bb5fe96ff756e5b25ec53c68c92d92c108832a65"
44

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

docs/using-gitbase/functions.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ These are all functions that are available because they are implemented in `go-m
3131
|`CONCAT_WS(sep, ...)`|Concatenate any group of fields into a single string. The first argument is the separator for the rest of the arguments. The separator is added between the strings to be concatenated. The separator can be a string, as can the rest of the arguments. If the separator is NULL, the result is NULL.|
3232
|`CONNECTION_ID()`|Return the current connection ID.|
3333
|`COUNT(expr)`| Returns a count of the number of non-NULL values of expr in the rows retrieved by a SELECT statement.|
34-
|`DAY(date)`|Returns the day of the given date.|
34+
|`DATE_ADD(date, interval)`|Adds the interval to the given date.|
35+
|`DATE_SUB(date, interval)`|Subtracts the interval from the given date.|
36+
|`DAY(date)`|Synonym for DAYOFMONTH().|
37+
|`DATE(date)`|Returns the date part of the given date.|
38+
|`DAYOFMONTH(date)`|Return the day of the month (0-31).|
3539
|`DAYOFWEEK(date)`|Returns the day of the week of the given date.|
3640
|`DAYOFYEAR(date)`|Returns the day of the year of the given date.|
3741
|`FLOOR(number)`|Return the largest integer value that is less than or equal to `number`.|
@@ -61,16 +65,20 @@ These are all functions that are available because they are implemented in `go-m
6165
|`RPAD(str, len, padstr)`|Returns the string str, right-padded with the string padstr to a length of len characters.|
6266
|`RTRIM(str)`|Returns the string str with trailing space characters removed.|
6367
|`SECOND(date)`|Returns the seconds of the given date.|
68+
|`SLEEP(seconds)`|Wait for the specified number of seconds (can be fractional).|
6469
|`SOUNDEX(str)`|Returns the soundex of a string.|
6570
|`SPLIT(str,sep)`|Receives a string and a separator and returns the parts of the string split by the separator as a JSON array of strings.|
6671
|`SQRT(X)`|Returns the square root of a nonnegative number X.|
6772
|`SUBSTR(str, pos, [len])`|Return a substring from the provided string starting at `pos` with a length of `len` characters. If no `len` is provided, all characters from `pos` until the end will be taken.|
6873
|`SUBSTRING(str, pos, [len])`|Return a substring from the provided string starting at `pos` with a length of `len` characters. If no `len` is provided, all characters from `pos` until the end will be taken.|
6974
|`SUM(expr)`|Returns the sum of expr in all rows.|
75+
|`TO_BASE64(str)`|Encodes the string str in base64 format.|
76+
|`FROM_BASE64(str)`|Decodes the base64-encoded string str.|
7077
|`TRIM(str)`|Returns the string str with all spaces removed.|
7178
|`UPPER(str)`|Returns the string str with all characters in upper case.|
7279
|`WEEKDAY(date)`|Returns the weekday of the given date.|
7380
|`YEAR(date)`|Returns the year of the given date.|
81+
|`YEARWEEK(date, mode)`|Returns year and week for a date. The year in the result may be different from the year in the date argument for the first and the last week of the year.|
7482
<!-- END FUNCTIONS -->
7583

7684
## Note about uast, uast_mode, uast_xpath and uast_children functions

docs/using-gitbase/indexes.md

Lines changed: 1 addition & 1 deletion
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/d03de5f7c0d7b9e9920c7654efc61eabe988dabe#indexes) documentation for more details
29+
See [go-mysql-server](https://github.com/src-d/go-mysql-server/tree/bb5fe96ff756e5b25ec53c68c92d92c108832a65#indexes) documentation for more details

docs/using-gitbase/supported-syntax.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
- USE
5151
- SHOW DATABASES
5252
- SHOW WARNINGS
53+
- INTERVALS
5354

5455
## Index expressions
5556
- CREATE INDEX (an index can be created using either column names or a single arbitrary expression).
@@ -67,8 +68,8 @@
6768
- OR
6869

6970
## Arithmetic expressions
70-
- \+
71-
- \-
71+
- \+ (including between dates and intervals)
72+
- \- (including between dates and intervals)
7273
- \*
7374
- \\
7475
- <<
@@ -109,15 +110,23 @@
109110
- LN
110111
- LOG2
111112
- LOG10
113+
- SLEEP
114+
- TO_BASE64
115+
- FROM_BASE64
112116

113117
## Time functions
118+
- DATE
114119
- DAY
115120
- WEEKDAY
121+
- DAYOFMONTH
116122
- DAYOFWEEK
117123
- DAYOFYEAR
118124
- HOUR
119125
- MINUTE
120126
- MONTH
121127
- SECOND
122128
- YEAR
129+
- YEARWEEK
123130
- NOW
131+
- DATE_ADD
132+
- DATE_SUB

vendor/gopkg.in/src-d/go-mysql-server.v0/README.md

Lines changed: 9 additions & 1 deletion
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/SUPPORTED.md

Lines changed: 11 additions & 2 deletions
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/server/handler.go

Lines changed: 2 additions & 4 deletions
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/validation_rules.go

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)