CONCPP-46 Fix of clang compilation errors&warnings

Added testing against 10.5 in travis.
This commit is contained in:
Lawrin Novitsky
2020-11-10 23:30:38 +01:00
parent 91cd28aecf
commit 197c36b4c6
23 changed files with 91 additions and 66 deletions

View File

@ -99,14 +99,12 @@ void BlobTest::tearDown()
/* throws Exception */
void BlobTest::testBlobStreamInsert()
{
//SKIP("too slow");
testBlobInsert( conn );
}
void BlobTest::testBlobStringInsert()
{
//SKIP("too slow");
testBlobInsert( conn, true );
}

View File

@ -544,7 +544,7 @@ void bugs::bug72700()
res.reset(stmt->getResultSet());
checkResultSetScrolling(res);
ResultSetMetaData meta(res->getMetaData());
ASSERT_EQUALS(meta->getColumnType(1), 15);
ASSERT_EQUALS(meta->getColumnType(1), sql::Types::LONGVARCHAR);
ASSERT_EQUALS(meta->getColumnTypeName(1), "LONGTEXT");
}
catch (::sql::SQLException & /*e*/)

View File

@ -54,28 +54,28 @@ public:
EXAMPLE_TEST_FIXTURE(bugs)
{
//TEST_CASE(net_write_timeout39878);
////TEST_CASE(store_result_error_51562);
////TEST_CASE(getResultSet_54840);
//TEST_CASE(supportIssue_52319);
//TEST_CASE(expired_pwd);
//TEST_CASE(bug71606);
//TEST_CASE(bug72700);
////TEST_CASE(bug66871);
//TEST_CASE(bug20085944);
//TEST_CASE(bug19938873_pstmt);
//TEST_CASE(bug19938873_stmt);
//TEST_CASE(bug68523);
////TEST_CASE(bug66235);
////TEST_CASE(bug14520822);
//TEST_CASE(bug17218692);
//TEST_CASE(bug21053335);
//TEST_CASE(bug21067193);
////TEST_CASE(bug21066575);
//TEST_CASE(bug21152054);
//TEST_CASE(bug22292073);
//TEST_CASE(bug23212333);
//TEST_CASE(bug17227390);
TEST_CASE(net_write_timeout39878);
//TEST_CASE(store_result_error_51562);
//TEST_CASE(getResultSet_54840);
TEST_CASE(supportIssue_52319);
TEST_CASE(expired_pwd);
TEST_CASE(bug71606);
TEST_CASE(bug72700);
//TEST_CASE(bug66871);
TEST_CASE(bug20085944);
TEST_CASE(bug19938873_pstmt);
TEST_CASE(bug19938873_stmt);
TEST_CASE(bug68523);
//TEST_CASE(bug66235);
//TEST_CASE(bug14520822);
TEST_CASE(bug17218692);
TEST_CASE(bug21053335);
TEST_CASE(bug21067193);
//TEST_CASE(bug21066575);
TEST_CASE(bug21152054);
TEST_CASE(bug22292073);
TEST_CASE(bug23212333);
TEST_CASE(bug17227390);
TEST_CASE(concpp44);
}

View File

@ -1323,7 +1323,7 @@ void preparedstatement::getWarnings()
logMsg("preparedstatement::getWarnings() - MySQL_PreparedStatement::get|clearWarnings()");
//TODO: Enable it after fixing
SKIP("Removed until fixed");
SKIP("Testcase needs to be fixed");
std::stringstream msg;
@ -1333,7 +1333,7 @@ void preparedstatement::getWarnings()
stmt->execute("DROP TABLE IF EXISTS test");
stmt->execute("CREATE TABLE test(id INT UNSIGNED)");
// Generating 2 warnings to make sure we get only the last 1 - won't hurt
// Generating 2 warnings to make sure we get only the last 1 - won't hurt
// Lets hope that this will always cause a 1264 or similar warning
pstmt.reset(con->prepareStatement("INSERT INTO test(id) VALUES (?)"));
pstmt->setInt(1, -2);
@ -1470,7 +1470,7 @@ void preparedstatement::blob()
ASSERT(res->next());
msg.str("");
msg << "... simple INSERT/SELECT, '" << blob_input << "' =? '" << res->getString(2) << "'";
msg << "... simple INSERT/SELECT, '" << std::endl << blob_input << std::endl << "' =? '" << std::endl << res->getString(2) << "'";
logMsg(msg.str());
ASSERT_EQUALS(res->getInt(1), id);
@ -1490,7 +1490,7 @@ void preparedstatement::blob()
ASSERT_EQUALS(blob_input, blob_output);
msg.str("");
msg << "... second check, '" << blob_input << "' =? '" << blob_output << "'";
msg << "... second check, '"<< std::endl << blob_input << std::endl << "' =? '" << std::endl << blob_output << "'";
logMsg(msg.str());
ASSERT(!res->next());

View File

@ -54,7 +54,7 @@ public:
EXAMPLE_TEST_FIXTURE(preparedstatement)
{
/*TEST_CASE(crash);
TEST_CASE(crash);
TEST_CASE(anonymousSelect);
TEST_CASE(InsertSelectAllTypes);
TEST_CASE(assortedSetType);
@ -65,7 +65,7 @@ public:
TEST_CASE(callSPInOut);
TEST_CASE(callSPWithPS);
TEST_CASE(callSPMultiRes);
TEST_CASE(getWarnings);*/
TEST_CASE(getWarnings);
TEST_CASE(blob);
TEST_CASE(executeQuery);
}