Skip to content

Format argument unsupported for TO_CHAR/TO_VARCHAR function #2177

Closed Answered by georgesittas
sunrutcon asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you should provide both the intended read and the intended write dialects so that the parsing / SQL generation work correctly for them. So, if you're parsing a Postgres query you should do parse_one(..., dialect="postgres") and if you're generating postgres, do parsed_expression.sql(dialect="postgres").

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@sunrutcon
Comment options

@georgesittas
Comment options

Answer selected by sunrutcon
@sunrutcon
Comment options

@sunrutcon
Comment options

@georgesittas
Comment options

Comment options

You must be logged in to vote
3 replies
@sunrutcon
Comment options

@georgesittas
Comment options

@sunrutcon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants