Core/DBLayer:

- Allow storing floats in prepared statements explicitly (previously would be casted to double)
- Add GetBool ¨wrapper/hack¨ to PreparedResultset class.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-09-19 15:25:50 +02:00
parent b50c931d6e
commit 22571e9443
4 changed files with 34 additions and 3 deletions

View File

@@ -185,6 +185,12 @@ void ResultBind::CleanUp()
delete[] m_rBind;
}
bool PreparedResultSet::GetBool(uint32 index)
{
// TODO: Perhaps start storing data in genuine bool formats in tables
return GetUInt8(index) == 1 ? true : false;
}
uint8 PreparedResultSet::GetUInt8(uint32 index)
{
if (!CheckFieldIndex(index))