mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
Missing assertTrue
This commit is contained in:
parent
7ed5c0f588
commit
e4d4315a88
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user