Collect all diagnostics available from SQLGetDiagRec as nested exceptions #315
Labels
category/enhancement
good-first-issue
Opportunity for new contributors to help us
status/help-wanted
Looking for help or expertise on a subject
The
recent_error
callsSQLGetDiagRec
in a loop already:nanodbc/nanodbc/nanodbc.cpp
Lines 391 to 394 in 9b9e819
nanodbc/nanodbc/nanodbc.cpp
Line 441 in 9b9e819
because there sometimes is a list of available diagnostics, but it currently captures the last one only.
A desired enhancement is to collect all available diagnostics as perhaps nested or linked exceptions.
For example, faciliated
database_error
with std::nested_exception.References
The text was updated successfully, but these errors were encountered: