aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/QueryResult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/shared/Database/QueryResult.cpp')
-rw-r--r--src/server/shared/Database/QueryResult.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/shared/Database/QueryResult.cpp b/src/server/shared/Database/QueryResult.cpp
index 9a0cf6293c6..18866e49fac 100644
--- a/src/server/shared/Database/QueryResult.cpp
+++ b/src/server/shared/Database/QueryResult.cpp
@@ -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)