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
Fix: allow (re)setting the current catalog #212
Conversation
This commit allows the application set the value of the current catalog attribute, in case this value is the same with what the driver had previously returned for this attribute. This currently only works if the attribute had been retrieved before setting, on the same connection; specifically, it won't work when this would be set as a pre-connection attribute.
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.
LGTM
test/test_driverconnect.cc
Outdated
@@ -7,6 +7,11 @@ | |||
#include <gtest/gtest.h> | |||
#include "connected_dbc.h" | |||
|
|||
/* */ |
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.
nit: empty comment
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.
thanks, fixed.
- remove empty comment Also apply change that was (somehow) not caught by the hooked formatter previously.
* allow (re)setting the current catalog This commit allows the application set the value of the current catalog attribute, in case this value is the same with what the driver had previously returned for this attribute. This currently only works if the attribute had been retrieved before setting, on the same connection; specifically, it won't work when this would be set as a pre-connection attribute. (cherry picked from commit 279c485)
* allow (re)setting the current catalog This commit allows the application set the value of the current catalog attribute, in case this value is the same with what the driver had previously returned for this attribute. This currently only works if the attribute had been retrieved before setting, on the same connection; specifically, it won't work when this would be set as a pre-connection attribute. (cherry picked from commit 279c485)
* allow (re)setting the current catalog This commit allows the application set the value of the current catalog attribute, in case this value is the same with what the driver had previously returned for this attribute. This currently only works if the attribute had been retrieved before setting, on the same connection; specifically, it won't work when this would be set as a pre-connection attribute. (cherry picked from commit 279c485)
This PR allows the application set the value of the current catalog attribute, in case this value is the same with what the driver had previously returned for this attribute.
Although Elasticsearch/SQL has no proper catalog support currently, this case should be supported as a safe use of the API.
This currently only works if the attribute had been retrieved before setting, on the same connection; specifically, it won't work when this would be set as a pre-connection attribute.
Closes #211.