Skip to content

fix(mssql): catch and bubble up exceptions from .sql #10332

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

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

gforsyth
Copy link
Member

Description of changes

dm_exec_describe_first_result_set can return error codes and error messages.
In order to better handle invalid SQL being passed to .sql, we check that the
err_num isn't NULL (NULL indicates success (because of course it does)) and
then raise the corresponding error message.

Issues closed

Fixes #10331

@github-actions github-actions bot added tests Issues or PRs related to tests mssql The Microsoft SQL Server backend labels Oct 18, 2024
@gforsyth gforsyth merged commit 80ad348 into ibis-project:main Oct 19, 2024
77 checks passed
@gforsyth gforsyth deleted the mssql_bubble_error branch October 19, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mssql The Microsoft SQL Server backend tests Issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: not handle column non-existent in mssql
2 participants