mirror of
https://github.com/mariadb-corporation/mariadb-connector-cpp.git
synced 2025-08-05 18:36:00 +00:00
CONCPP-7 Tls options did not have any effect.
Added new Tls options and removes some, that did not make sense in C/C++. Added Tls options processing, i.e. fixed the bug. Added facility to provide aliases for connection options. Renamed many options and/or added aliases. Added table to README.md with information about such options. connect(Properties) now take port property into consideration.
This commit is contained in:
@ -3029,6 +3029,12 @@ int run_tests(int argc, const char **argv)
|
||||
// printf("# ");
|
||||
|
||||
try {
|
||||
if (!conn->isValid(10)) {
|
||||
printf("\n# ERR: Connection is not valid at %s::%d\n", CPPCONN_FUNC, __LINE__);
|
||||
printf("not ok\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<sql::Statement> stmt(conn->createStatement());
|
||||
stmt->execute("SHOW ENGINES");
|
||||
{
|
||||
|
Reference in New Issue
Block a user