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

Native error code never passed to DBI #24

Open
M-Ostheimer opened this issue Sep 26, 2022 · 0 comments
Open

Native error code never passed to DBI #24

M-Ostheimer opened this issue Sep 26, 2022 · 0 comments

Comments

@M-Ostheimer
Copy link

Excerpt from pod/DBD::ODBC#odbc_getdiagrec:

odbc_getdiagrec

:

All of the state, native and message text are already passed to DBI
via its set_err method so this method does not really tell you
anything you cannot already get from DBI except when there is more
than one diagnostic.

This is not correct, because all calls of DBIh_SET_ERR_ get as argument err passed a 1 or 0

M-Ostheimer pushed a commit to PSI-Logistics-GmbH/DBD-ODBC that referenced this issue Sep 26, 2022
Pass the `NativeError` to the central call of DBIh_SET_ERR_CHAR(.......) in the dbd_error2(......) function.
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

No branches or pull requests

1 participant