Merging upstream version 26.12.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d24d19e9ea
commit
69b6dd9501
70 changed files with 1134 additions and 340 deletions
|
@ -200,6 +200,7 @@ class Generator(metaclass=_Generator):
|
|||
exp.TransientProperty: lambda *_: "TRANSIENT",
|
||||
exp.Union: lambda self, e: self.set_operations(e),
|
||||
exp.UnloggedProperty: lambda *_: "UNLOGGED",
|
||||
exp.UsingTemplateProperty: lambda self, e: f"USING TEMPLATE {self.sql(e, 'this')}",
|
||||
exp.UsingData: lambda self, e: f"USING DATA {self.sql(e, 'this')}",
|
||||
exp.Uuid: lambda *_: "UUID()",
|
||||
exp.UppercaseColumnConstraint: lambda *_: "UPPERCASE",
|
||||
|
@ -596,6 +597,7 @@ class Generator(metaclass=_Generator):
|
|||
exp.TransformModelProperty: exp.Properties.Location.POST_SCHEMA,
|
||||
exp.MergeTreeTTL: exp.Properties.Location.POST_SCHEMA,
|
||||
exp.UnloggedProperty: exp.Properties.Location.POST_CREATE,
|
||||
exp.UsingTemplateProperty: exp.Properties.Location.POST_SCHEMA,
|
||||
exp.ViewAttributeProperty: exp.Properties.Location.POST_SCHEMA,
|
||||
exp.VolatileProperty: exp.Properties.Location.POST_CREATE,
|
||||
exp.WithDataProperty: exp.Properties.Location.POST_EXPRESSION,
|
||||
|
@ -3056,7 +3058,7 @@ class Generator(metaclass=_Generator):
|
|||
elif field:
|
||||
in_sql = self.sql(field)
|
||||
else:
|
||||
in_sql = f"({self.expressions(expression, flat=True)})"
|
||||
in_sql = f"({self.expressions(expression, dynamic=True, new_line=True, skip_first=True, skip_last=True)})"
|
||||
|
||||
return f"{self.sql(expression, 'this')}{is_global} IN {in_sql}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue