Merging upstream version 25.31.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
94fd84e2b9
commit
4c76f76a29
68 changed files with 58911 additions and 55752 deletions
|
@ -1724,3 +1724,14 @@ def explode_to_unnest_sql(self: Generator, expression: exp.Lateral) -> str:
|
|||
|
||||
def timestampdiff_sql(self: Generator, expression: exp.DatetimeDiff | exp.TimestampDiff) -> str:
|
||||
return self.func("TIMESTAMPDIFF", expression.unit, expression.expression, expression.this)
|
||||
|
||||
|
||||
def no_make_interval_sql(self: Generator, expression: exp.MakeInterval, sep: str = ", ") -> str:
|
||||
args = []
|
||||
for unit, value in expression.args.items():
|
||||
if isinstance(value, exp.Kwarg):
|
||||
value = value.expression
|
||||
|
||||
args.append(f"{value} {unit}")
|
||||
|
||||
return f"INTERVAL '{self.format_args(*args, sep=sep)}'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue