(arg, ctx: SqlContext)
| 60 | class _Concat(functions.Concat): |
| 61 | @staticmethod |
| 62 | def get_arg_sql(arg, ctx: SqlContext): |
| 63 | sql = arg.get_sql(ctx.copy(with_alias=False)) if hasattr(arg, "get_sql") else str(arg) |
| 64 | # explicitly convert to text for postgres to avoid errors like |
| 65 | # "could not determine data type of parameter $1" |
| 66 | if ctx.dialect.value == "postgresql": |
| 67 | return f"{sql}::text" |
| 68 | return sql |
| 69 | |
| 70 | |
| 71 | class Concat(Function): |