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 committed 2010-09-19 15:25:50 +02:00
1 parent b50c931d6e
commit 22571e9443
4 files changed
+34 -3

No files matched your search

@@ -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))