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

fix(c/driver_manager): More robust error reporting for errors that occur before AdbcDatabaseInit() #2266

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

paleolimbot
Copy link
Member

Fixes #2264.

@paleolimbot paleolimbot marked this pull request as ready for review October 21, 2024 18:39
@github-actions github-actions bot added this to the ADBC Libraries 15 milestone Oct 21, 2024
Comment on lines 108 to 110
struct AdbcError error {
ADBC_ERROR_INIT
};
Copy link
Member

Choose a reason for hiding this comment

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

huh, the formatter wants this? This threw me for a loop since I would've expected struct AdbcError error{ADBC_ERROR_INIT} or struct AdbcError error = ADBC_ERROR_INIT. Though ultimately it's not a big deal.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess so...I'm pretty sure I wrote struct AdbcError error{ADBC_ERROR_INIT}!

Copy link
Member

@lidavidm lidavidm Oct 22, 2024

Choose a reason for hiding this comment

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

ah I'm guessing it's ambiguous to the formatter since without parsing out the types and expanding the macro you can't tell if that's a struct declaration or a field declaration

Copy link
Member

@lidavidm lidavidm Oct 22, 2024

Choose a reason for hiding this comment

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

...except never mind, the field name is right there so ...??? anyways it seems = is better to the formatter!

@paleolimbot paleolimbot merged commit 25725fd into apache:main Oct 22, 2024
64 of 65 checks passed
@paleolimbot paleolimbot deleted the c-driver_manager-release branch October 22, 2024 21:41
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.

c/driver_manager: Python bindings can segfault if AdbcDatabaseInit() errors
3 participants