File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 137
137
#define OPT_OCI_CONFIG_FILE " OPT_OCI_CONFIG_FILE"
138
138
#define OPT_AUTHENTICATION_KERBEROS_CLIENT_MODE \
139
139
" OPT_AUTHENTICATION_KERBEROS_CLIENT_MODE"
140
+ #define OPT_OCI_CLIENT_CONFIG_PROFILE " OPT_OCI_CLIENT_CONFIG_PROFILE"
140
141
141
142
namespace sql
142
143
{
Original file line number Diff line number Diff line change @@ -1029,6 +1029,24 @@ void MySQL_Connection::init(ConnectOptionsMap & properties)
1029
1029
OPT_OCI_CONFIG_FILE
1030
1030
);
1031
1031
}
1032
+ } else if (!it->first .compare (OPT_OCI_CLIENT_CONFIG_PROFILE)) {
1033
+ try {
1034
+ p_s = (it->second ).get <sql::SQLString>();
1035
+ } catch (sql::InvalidArgumentException &) {
1036
+ throw sql::InvalidArgumentException (
1037
+ " Wrong type passed for OPT_OCI_CLIENT_CONFIG_PROFILE. Expected "
1038
+ " sql::SQLString." );
1039
+ }
1040
+
1041
+ try {
1042
+ proxy->plugin_option (MYSQL_CLIENT_AUTHENTICATION_PLUGIN,
1043
+ " authentication_oci_client" ,
1044
+ " authentication-oci-client-config-profile" , *p_s);
1045
+ } catch (sql::InvalidArgumentException &e) {
1046
+ throw ::sql::SQLUnsupportedOptionException (
1047
+ " Failed to set config profile for authentication_oci_client plugin" ,
1048
+ OPT_OCI_CLIENT_CONFIG_PROFILE);
1049
+ }
1032
1050
1033
1051
} else if (!it->first .compare (OPT_AUTHENTICATION_KERBEROS_CLIENT_MODE)) {
1034
1052
#if defined(_WIN32)
You can’t perform that action at this time.
0 commit comments