use std::size_t in Data interfaces (may break some code on 64-bit platforms)

This commit is contained in:
Aleksandar Fabijanic
2009-02-16 03:34:35 +00:00
parent 5b320c2894
commit 142c248754
34 changed files with 190 additions and 194 deletions

View File

@@ -493,7 +493,7 @@ void MySQLTest::testSessionTransaction()
{
if (!_pSession) fail ("Test not available.");
recreatePersonBLOBTable();
recreatePersonTable();
_pExecutor->sessionTransaction(_dbConnString);
}
@@ -502,7 +502,7 @@ void MySQLTest::testTransaction()
{
if (!_pSession) fail ("Test not available.");
recreatePersonBLOBTable();
recreatePersonTable();
_pExecutor->transaction(_dbConnString);
}

View File

@@ -1277,9 +1277,9 @@ void SQLExecutor::blob(int bigSize)
Poco::Data::CLOB big;
std::vector<char> v(bigSize, 'x');
big.assignRaw(&v[0], v.size());
big.assignRaw(&v[0], (std::size_t) v.size());
assert (big.size() == (size_t)bigSize);
assert (big.size() == (std::size_t) bigSize);
try { *_pSession << "DELETE FROM Person", now; }
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
@@ -1359,7 +1359,7 @@ void SQLExecutor::tupleVector()
try { *_pSession << "SELECT COUNT(*) FROM Tuples", into(count), now; }
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
catch(StatementException& se){ std::cout << se.displayText() << std::endl; fail (funct); }
assert (v.size() == (size_t)count);
assert (v.size() == (std::size_t) count);
std::vector<Tuple<int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int> > ret;
try { *_pSession << "SELECT * FROM Tuples", into(ret), now; }