Adding upstream version 26.0.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
522374f608
commit
09521056ff
65 changed files with 45416 additions and 44542 deletions
|
@ -687,6 +687,14 @@ class Postgres(Dialect):
|
|||
values = self.expressions(expression, key="values", flat=True)
|
||||
return f"{self.expressions(expression, flat=True)}[{values}]"
|
||||
return "ARRAY"
|
||||
|
||||
if (
|
||||
expression.is_type(exp.DataType.Type.DOUBLE, exp.DataType.Type.FLOAT)
|
||||
and expression.expressions
|
||||
):
|
||||
# Postgres doesn't support precision for REAL and DOUBLE PRECISION types
|
||||
return f"FLOAT({self.expressions(expression, flat=True)})"
|
||||
|
||||
return super().datatype_sql(expression)
|
||||
|
||||
def cast_sql(self, expression: exp.Cast, safe_prefix: t.Optional[str] = None) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue