-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl Display for Statement #3646
Comments
I'd like to give it a try. |
@irenjj Assigned and please go ahead! You can implement Display for Statement first and we later integrate it with the current logging on error logic. Or you can implmenet both at once if you'd like to. But anyway, please submit a PR and ping me as a reviewer when the basic functionality is ready. |
@irenjj a reminder to confirm that you still work on this issue - do you find any trouble here? |
hi, @tisonkun, Sorry, I've been a bit busy lately. I have only completed part of it.
I'll complete the remaining logic in the next few days and submit a draft. |
@irenjj Thanks for your update! That's great. |
What type of enhancement is this?
API improvement
What does the enhancement do?
sqlparser's Statement implements Display, we need to implement Display for our Statement, named
sql::statement::Statement
also.See
We currently print all the query if any of the statement failed to execute. We should write instead:
with
stmt
probably redacted. And formatting structuralstmt
would be more reliable to redact fields, instead of depending on brittle regexps.Implementation challenges
No response
The text was updated successfully, but these errors were encountered: