From e4d4315a88e517bf56b0fbf9b86ea5fb9bf46fa3 Mon Sep 17 00:00:00 2001 From: Francis ANDRE Date: Thu, 29 Mar 2018 14:09:26 +0200 Subject: [PATCH] Missing assertTrue --- Data/MySQL/testsuite/src/SQLExecutor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Data/MySQL/testsuite/src/SQLExecutor.cpp b/Data/MySQL/testsuite/src/SQLExecutor.cpp index aa246f084..a0484068b 100644 --- a/Data/MySQL/testsuite/src/SQLExecutor.cpp +++ b/Data/MySQL/testsuite/src/SQLExecutor.cpp @@ -1403,12 +1403,12 @@ void SQLExecutor::blobStmt() assertTrue (count == 1); Poco::Data::CLOB res; - poco_assertTrue (res.size() == 0); + poco_assert (res.size() == 0); Statement stmt = (*_pSession << "SELECT Image FROM Person", into(res)); try { stmt.execute(); } catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); } catch(StatementException& se){ std::cout << se.displayText() << std::endl; fail (funct); } - poco_assertTrue (res == blob); + poco_assert (res == blob); } @@ -1596,21 +1596,21 @@ void SQLExecutor::doNull() try { stmt1.execute(); } catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); } catch(StatementException& se){ std::cout << se.displayText() << std::endl; fail (funct); } - poco_assertTrue (i0 == -1); + poco_assert (i0 == -1); float flt0 = 0; Statement stmt2 = (*_pSession << "SELECT flt0 FROM Vectors", into(flt0, Poco::Data::Position(0), 3.25f)); try { stmt2.execute(); } catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); } catch(StatementException& se){ std::cout << se.displayText() << std::endl; fail (funct); } - poco_assertTrue (flt0 == 3.25); + poco_assert (flt0 == 3.25); std::string str0("string"); Statement stmt3 = (*_pSession << "SELECT str0 FROM Vectors", into(str0, Poco::Data::Position(0), std::string("DEFAULT"))); try { stmt3.execute(); } catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); } catch(StatementException& se){ std::cout << se.displayText() << std::endl; fail (funct); } - poco_assertTrue (str0 == "DEFAULT"); + poco_assert (str0 == "DEFAULT"); }