Repository navigation
Report local ODBC setup failures as configuration errors - #18
Merged
Merged
Conversation
Collaborator
Author
81reap
marked this pull request as ready for review
November 15, 2026 06:31
Closed
lovasoa
approved these changes
Nov 15, 2026
lovasoa
left a comment
Collaborator
There was a problem hiding this comment.
feel free to move fast and break things in this crate :) merge pull requests without my approval, or don't make PRs at all, try multiple things and see what works best, ...
There are no users at the moment
Co-authored-by: 81reap <prayag.bhakar@gmail.com>
lovasoa
force-pushed
the
81reap/connecting/3b
branch
from
November 27, 2026 16:13
418e90a to
f28f027
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An unregistered ODBC data source name (DSN) is a local setup error. The driver manager reports
IM002before it contacts a database. Callers now getsqlx::Error::Configurationwith the original ODBC diagnostic as its cause.The same rule applies to
IM003(driver cannot load),IM012(invalidDRIVERsyntax), andIM014(driver architecture mismatch). Server connection and authentication errors continue to useError::Database.The missing-DSN test uses a valid-length name and requires exactly
IM002.OdbcError::Configurationnow carries an error source instead of aStringso diagnostics remain accessible without parsing messages.Refs #3 and #2 (2D).