mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/DBLayer: Add GetCString method for PreparedResultSet (dynamic copy is responsibility of the high level code)
--HG-- branch : trunk
This commit is contained in:
@@ -260,6 +260,14 @@ std::string PreparedResultSet::GetString(uint32 index)
|
||||
return std::string(static_cast<char const*>(rbind->m_rBind[index].buffer), *rbind->m_rBind[index].length);
|
||||
}
|
||||
|
||||
const char* PreparedResultSet::GetCString(uint32 index)
|
||||
{
|
||||
if (!CheckFieldIndex(index))
|
||||
return '\0';
|
||||
|
||||
return static_cast<char const*>(rbind->m_rBind[index].buffer);
|
||||
}
|
||||
|
||||
bool PreparedResultSet::NextRow()
|
||||
{
|
||||
if (row_position >= num_rows)
|
||||
|
||||
Reference in New Issue
Block a user