|
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 |
Answered by
alamb
Aug 7, 2023
Replies: 1 comment
|
the |
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.idin the SELECT list will be anExpr-- so you would have to use one of the expr visiting methods likepost_visit_exprfor this: https://docs.rs/sqlparser/0.36.1/sqlparser/ast/trait.VisitorMut.html#method.post_visit_expr