Skip to content

Commit 40a9845

Browse files
committed
Fixup
1 parent c716ba5 commit 40a9845

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

sqlglot/generators/duckdb.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2963,11 +2963,8 @@ def chr_sql(self, expression: exp.Chr, name: str = "CHR") -> str:
29632963
return self.func("CHR", arg)
29642964

29652965
def collation_sql(self, expression: exp.Collation) -> str:
2966-
this = expression.this
2967-
if isinstance(this, exp.Collate) and this.expression.name:
2968-
return self.sql(this.expression)
29692966
self.unsupported("COLLATION function is not supported by DuckDB")
2970-
return self.sql(exp.null())
2967+
return self.function_fallback_sql(expression)
29712968

29722969
def _validate_regexp_flags(
29732970
self, flags: t.Optional[exp.Expr], supported_flags: str

0 commit comments

Comments
 (0)