Fix for 64bit linux - size_t isn't always Poco::UInt32

This commit is contained in:
Marian Krivos
2009-03-08 18:57:55 +00:00
parent c4f6084c25
commit aaa3b1b274
6 changed files with 26 additions and 23 deletions

View File

@@ -63,20 +63,20 @@ public:
/// Destroys the TestStatementImpl.
protected:
Poco::UInt32 columnsReturned() const;
std::size_t columnsReturned() const;
/// Returns number of columns returned by query.
Poco::UInt32 affectedRowCount() const;
std::size_t affectedRowCount() const;
/// Returns the number of affected rows.
/// Used to find out the number of rows affected by insert or update.
const MetaColumn& metaColumn(Poco::UInt32 pos) const;
const MetaColumn& metaColumn(std::size_t pos) const;
/// Returns column meta data.
bool hasNext();
/// Returns true if a call to next() will return data.
Poco::UInt32 next();
std::size_t next();
/// Retrieves the next row or set of rows from the resultset.
/// Will throw, if the resultset is empty.
@@ -121,7 +121,7 @@ inline AbstractBinder& TestStatementImpl::binder()
}
inline Poco::UInt32 TestStatementImpl::affectedRowCount() const
inline std::size_t TestStatementImpl::affectedRowCount() const
{
return 0;
}