Adding upstream version 26.16.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
4bfa0e7e53
commit
6e767a6f98
110 changed files with 62370 additions and 61414 deletions
|
@ -4533,6 +4533,7 @@ class DataType(Expression):
|
|||
NAME = auto()
|
||||
NCHAR = auto()
|
||||
NESTED = auto()
|
||||
NOTHING = auto()
|
||||
NULL = auto()
|
||||
NUMMULTIRANGE = auto()
|
||||
NUMRANGE = auto()
|
||||
|
@ -5752,7 +5753,7 @@ class DateSub(Func, IntervalOp):
|
|||
|
||||
class DateDiff(Func, TimeUnit):
|
||||
_sql_names = ["DATEDIFF", "DATE_DIFF"]
|
||||
arg_types = {"this": True, "expression": True, "unit": False}
|
||||
arg_types = {"this": True, "expression": True, "unit": False, "zone": False}
|
||||
|
||||
|
||||
class DateTrunc(Func):
|
||||
|
@ -7865,7 +7866,7 @@ def parse_identifier(name: str | Identifier, dialect: DialectType = None) -> Ide
|
|||
return expression
|
||||
|
||||
|
||||
INTERVAL_STRING_RE = re.compile(r"\s*([0-9]+)\s*([a-zA-Z]+)\s*")
|
||||
INTERVAL_STRING_RE = re.compile(r"\s*(-?[0-9]+)\s*([a-zA-Z]+)\s*")
|
||||
|
||||
|
||||
def to_interval(interval: str | Literal) -> Interval:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue