mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-02 23:42:29 +02:00
Missing assertTrue
This commit is contained in:
parent
7ed5c0f588
commit
e4d4315a88
@ -1403,12 +1403,12 @@ void SQLExecutor::blobStmt()
|
|||||||
assertTrue (count == 1);
|
assertTrue (count == 1);
|
||||||
|
|
||||||
Poco::Data::CLOB res;
|
Poco::Data::CLOB res;
|
||||||
poco_assertTrue (res.size() == 0);
|
poco_assert (res.size() == 0);
|
||||||
Statement stmt = (*_pSession << "SELECT Image FROM Person", into(res));
|
Statement stmt = (*_pSession << "SELECT Image FROM Person", into(res));
|
||||||
try { stmt.execute(); }
|
try { stmt.execute(); }
|
||||||
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
|
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
|
||||||
catch(StatementException& se){ std::cout << se.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(); }
|
try { stmt1.execute(); }
|
||||||
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
|
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
|
||||||
catch(StatementException& se){ std::cout << se.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;
|
float flt0 = 0;
|
||||||
Statement stmt2 = (*_pSession << "SELECT flt0 FROM Vectors", into(flt0, Poco::Data::Position(0), 3.25f));
|
Statement stmt2 = (*_pSession << "SELECT flt0 FROM Vectors", into(flt0, Poco::Data::Position(0), 3.25f));
|
||||||
try { stmt2.execute(); }
|
try { stmt2.execute(); }
|
||||||
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
|
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
|
||||||
catch(StatementException& se){ std::cout << se.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");
|
std::string str0("string");
|
||||||
Statement stmt3 = (*_pSession << "SELECT str0 FROM Vectors", into(str0, Poco::Data::Position(0), std::string("DEFAULT")));
|
Statement stmt3 = (*_pSession << "SELECT str0 FROM Vectors", into(str0, Poco::Data::Position(0), std::string("DEFAULT")));
|
||||||
try { stmt3.execute(); }
|
try { stmt3.execute(); }
|
||||||
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
|
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
|
||||||
catch(StatementException& se){ std::cout << se.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…
x
Reference in New Issue
Block a user