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

include column name in TryGetError::Null #853

Merged
merged 2 commits into from
Jul 11, 2022
Merged

Conversation

kyoto7250
Copy link
Contributor

PR Info

close #828

Adds

This PR adds column info in TryGetError::Null

Thank you in advance.

@kyoto7250 kyoto7250 marked this pull request as ready for review July 9, 2022 12:59
@tyt2y3 tyt2y3 requested a review from billy1624 July 10, 2022 15:08
@@ -198,7 +200,7 @@ macro_rules! try_getable_mysql {
#[allow(unused_variables)]
QueryResultRow::Mock(row) => row.try_get(_column.as_str()).map_err(|e| {
debug_print!("{:#?}", e.to_string());
TryGetError::Null
TryGetError::Null(_column)
Copy link
Member

Choose a reason for hiding this comment

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

Since we are using the variable now, we should remove the _ prefix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed in 3ee0662

@tyt2y3
Copy link
Member

tyt2y3 commented Jul 11, 2022

Awesome

@tyt2y3
Copy link
Member

tyt2y3 commented Jul 11, 2022

Seems like good to merge. Although would still like @billy1624 's feedback.

@tyt2y3 tyt2y3 merged commit 23ac958 into SeaQL:master Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add column name when error occurred while decoding: Null
2 participants