mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 12:22:39 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user