You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dca26fa
Browse filesBrowse the repository at this point in the historyBrowse files
feat: make SQL_ATTR_CURRENT_CATALOG readable and applied, and export SQL_PARAM_*
The spec makes SQL_ATTR_CURRENT_CATALOG and SQL_DATABASE_NAME one value under
two names, but the attribute was handle-local and write-only: SQLGetConnectAttr
answered "" while SQLGetInfo answered the real catalog, and setting it returned
SQL_SUCCESS while switching nothing. Reported from the Trino driver, where the
derivation added in b2f79b7 was correct in principle and inert in practice.
Two defaulted Backend methods close it. current_catalog reports the session's
catalog, and both readers now consult the same two sources in the same order —
what the application set, else what the session is using. set_current_catalog
applies a change, and SQLSetConnectAttr stores the value only once it succeeds;
the default reports HYC00, since storing a catalog the session never switched
to tells an application its unqualified names resolve somewhere they do not. A
value set before connecting is applied at connect, alongside autocommit and
isolation.
SQL_PARAM_SUCCESS and its four siblings move from pub(crate) in ffi::params to
public constants in types. odbc-sys lacks them, so a driver asserting what its
own executions wrote into SQL_ATTR_PARAM_STATUS_PTR had to declare local
copies.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments