Merging upstream version 18.5.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
ad94fdbf21
commit
11b24b93ea
67 changed files with 32690 additions and 32450 deletions
|
@ -1321,7 +1321,13 @@ class GeneratedAsIdentityColumnConstraint(ColumnConstraintKind):
|
|||
|
||||
# https://dev.mysql.com/doc/refman/8.0/en/create-table.html
|
||||
class IndexColumnConstraint(ColumnConstraintKind):
|
||||
arg_types = {"this": False, "schema": True, "kind": False, "type": False, "options": False}
|
||||
arg_types = {
|
||||
"this": False,
|
||||
"schema": True,
|
||||
"kind": False,
|
||||
"index_type": False,
|
||||
"options": False,
|
||||
}
|
||||
|
||||
|
||||
class InlineLengthColumnConstraint(ColumnConstraintKind):
|
||||
|
@ -1354,7 +1360,7 @@ class TitleColumnConstraint(ColumnConstraintKind):
|
|||
|
||||
|
||||
class UniqueColumnConstraint(ColumnConstraintKind):
|
||||
arg_types = {"this": False}
|
||||
arg_types = {"this": False, "index_type": False}
|
||||
|
||||
|
||||
class UppercaseColumnConstraint(ColumnConstraintKind):
|
||||
|
@ -4366,6 +4372,10 @@ class Extract(Func):
|
|||
arg_types = {"this": True, "expression": True}
|
||||
|
||||
|
||||
class Timestamp(Func):
|
||||
arg_types = {"this": False, "expression": False}
|
||||
|
||||
|
||||
class TimestampAdd(Func, TimeUnit):
|
||||
arg_types = {"this": True, "expression": True, "unit": False}
|
||||
|
||||
|
@ -4579,6 +4589,11 @@ class JSONArrayContains(Binary, Predicate, Func):
|
|||
_sql_names = ["JSON_ARRAY_CONTAINS"]
|
||||
|
||||
|
||||
class ParseJSON(Func):
|
||||
# BigQuery, Snowflake have PARSE_JSON, Presto has JSON_PARSE
|
||||
_sql_names = ["PARSE_JSON", "JSON_PARSE"]
|
||||
|
||||
|
||||
class Least(Func):
|
||||
arg_types = {"this": True, "expressions": False}
|
||||
is_var_len_args = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue