mirror of
https://github.com/mariadb-corporation/mariadb-connector-cpp.git
synced 2025-07-28 23:27:52 +00:00
Tentative fix for the issue.
There is no ticket yet, but bound to use of binaries built with differnet VS version.
This commit is contained in:
@ -3225,5 +3225,20 @@ void connection::bugConCpp21()
|
||||
}
|
||||
|
||||
|
||||
void connection::unknownPropertyConnect()
|
||||
{
|
||||
sql::Properties p;
|
||||
|
||||
p["user"]= user;
|
||||
|
||||
con.reset(driver->connect(url + "?password=" + passwd + "¬ExistentPropery=blahblah", p));
|
||||
ASSERT(con.get() == nullptr);
|
||||
p["hostName"]= url;
|
||||
p["password"]= passwd;
|
||||
p["notExistentPropery"]= "blahblah";
|
||||
con.reset(driver->connect(p));
|
||||
ASSERT(con.get() == nullptr);
|
||||
}
|
||||
|
||||
} /* namespace connection */
|
||||
} /* namespace testsuite */
|
||||
|
@ -87,6 +87,7 @@ public:
|
||||
TEST_CASE(tls_version);
|
||||
TEST_CASE(cached_sha2_auth);
|
||||
TEST_CASE(bugConCpp21);
|
||||
TEST_CASE(unknownPropertyConnect);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -266,6 +267,9 @@ public:
|
||||
* URL overrides properties instead of the opposite
|
||||
*/
|
||||
void bugConCpp21();
|
||||
|
||||
/* Unknown properties cause nullptr for connect() and exception for getConnection() */
|
||||
void unknownPropertyConnect();
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user