-
Notifications
You must be signed in to change notification settings - Fork 12
Empty Stub Improvements #124
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
Empty Stub Improvements #124
Conversation
# Conflicts: # src/common/odbc_utils.cpp # src/empty_stubs.cpp # src/statement/statement.cpp # test/CMakeLists.txt
8ea5fe0
to
abc637f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup of this part and great test coverage! I've added a few minor things in inline comments.
} | ||
|
||
return SetNotImplemented(hdl, "SQLBrowseConnect"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a SQLBrowseConnectW
counterpart to this function? It is included in the list of Unicode ODBC functions. We are not planning to implement it, so this is just for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I've added it as well as a test for it.
Minor type casting and consistency updates.
# Conflicts: # test/CMakeLists.txt
77d0529
to
d7eda0b
Compare
This PR improves the implementation of the empty stub functions to either set an empty response or a diagnostic record.
Empty Results:
SQLPrimaryKeys
SQLForeignKeys
SQLProcedureColumns
SQLProcedures
SQLColumnPrivileges
SQLTablePrivileges
SQLSpecialColumns
SQLStatistics
Returns Error with diagnostics
SQLNativeSql
SQLBrowseConnect
SQLBulkOperations
SQLSetPos
SQLSpecialColumns
andSQLStatistics
were previously implemented with empty results and moved tostatement.cpp
but have now been pushed back toempty_stubs.cpp
to keep all the functions with empty results together.