Merging upstream version 6.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
0822fbed3a
commit
9bc11b290e
22 changed files with 312 additions and 45 deletions
|
@ -748,6 +748,9 @@ class Generator:
|
|||
def structkwarg_sql(self, expression):
|
||||
return f"{self.sql(expression, 'this')} {self.sql(expression, 'expression')}"
|
||||
|
||||
def parameter_sql(self, expression):
|
||||
return f"@{self.sql(expression, 'this')}"
|
||||
|
||||
def placeholder_sql(self, *_):
|
||||
return "?"
|
||||
|
||||
|
@ -903,7 +906,7 @@ class Generator:
|
|||
return f"UNIQUE ({columns})"
|
||||
|
||||
def if_sql(self, expression):
|
||||
return self.case_sql(exp.Case(ifs=[expression], default=expression.args.get("false")))
|
||||
return self.case_sql(exp.Case(ifs=[expression.copy()], default=expression.args.get("false")))
|
||||
|
||||
def in_sql(self, expression):
|
||||
query = expression.args.get("query")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue