Skip to content
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

chore: handle warnings from backend #316

Closed
wants to merge 3 commits into from

Conversation

flaneur2020
Copy link
Member

we added an extra warnings field in the response from query.

on some corner cases when some tables are failed to be listed in the SHOW TABLES statement, we'd perfer return warnings instead of errors, which would break all the output.

@flaneur2020 flaneur2020 marked this pull request as ready for review December 11, 2023 12:17
@@ -61,6 +61,7 @@ pub struct QueryResponse {
pub data: Vec<Vec<String>>,
pub state: String,
pub error: Option<QueryError>,
pub warnings: Vec<String>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Option<Vec<String>> for backward compatibility?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants