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(csharp/src/Apache.Arrow.Adbc/C): imported errors don't return a native error or SQL state #1815

Merged
merged 2 commits into from
May 4, 2024

Conversation

CurtHagenlocher
Copy link
Contributor

Creates subclass of AdbcException for imported drivers which reads the native error code and SQLState from the C error structure.

Closes #1813

…e native error code and SQLState from the C error structure.

Closes apache#1813
@github-actions github-actions bot added this to the ADBC Libraries 1.0.0 milestone May 3, 2024
@CurtHagenlocher
Copy link
Contributor Author

It turns out that neither DuckDB nor Snowflake are setting these. Maybe PostgreSQL or sqlite would work; something to look at in the future.

@lidavidm
Copy link
Member

lidavidm commented May 4, 2024

  • I think basically nothing uses the error code so far (also see format: add AdbcErrorGetVendorCode #1576)
  • PostgreSQL should set SQLSTATE
  • I would like Flight SQL to be able to set SQLSTATE but it would need a protocol enhancement

@CurtHagenlocher
Copy link
Contributor Author

Ah, I've only started to implement 1.1 functionality so I'd forgotten about that use of the vendor code.

@CurtHagenlocher CurtHagenlocher merged commit 4cffa7b into apache:main May 4, 2024
6 checks passed
@CurtHagenlocher CurtHagenlocher deleted the GH-1813 branch May 4, 2024 12:39
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.

csharp/src/Apache.Arrow.Adbc/C: imported errors don't return a native error or SQL state
2 participants