Added one more testsuite to ctest(connection)

Added queryTimeout init by the respective constructor and changed its
check to > 0 from !=0
This commit is contained in:
Lawrin Novitsky
2020-08-03 14:56:39 +02:00
parent c71b1afc35
commit 374aa394ba
3 changed files with 7 additions and 4 deletions

View File

@ -85,6 +85,7 @@ ADD_TEST(compliance cjportedtests)
ADD_TEST(test_parametermetadata parametermetadata)
ADD_TEST(test_preparedstatement preparedstatement)
ADD_TEST(test_resultsetmetadata resultsetmetadata)
ADD_TEST(test_connection connection)
SET_TESTS_PROPERTIES(test_preparedstatement PROPERTIES TIMEOUT 120 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
# With remote SkySQL server, compliance tend to timeout

View File

@ -3135,7 +3135,8 @@ void connection::cached_sha2_auth()
logMsg("connection::auth - MYSQL_OPT_GET_SERVER_PUBLIC_KEY");
if (getMySQLVersion(con) < 80000)
int serverVersion= getMySQLVersion(con);
if (serverVersion < 80000 || serverVersion > 100000)
{
SKIP("Server doesn't support caching_sha2_password");
return;