-
Hi, I want to do something like this with I've a query like SELECT foo.id from foo; I need to change SELECT foo_1.id FROM foo_1; I tried |
Beta Was this translation helpful? Give feedback.
Answered by
alamb
Aug 7, 2023
Replies: 1 comment
-
the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kasvith
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the
foo.id
in the SELECT list will be anExpr
-- so you would have to use one of the expr visiting methods likepost_visit_expr
for this: https://docs.rs/sqlparser/0.36.1/sqlparser/ast/trait.VisitorMut.html#method.post_visit_expr