Eluna fix some methods

This commit is contained in:
Rochet2
2014-06-07 23:01:10 +03:00
committed by Foereaper
parent 143e81da07
commit eeb348e48a
6 changed files with 74 additions and 30 deletions

View File

@@ -140,6 +140,14 @@ namespace LuaQuery
return 1;
}
int GetCString(lua_State* L, QueryResult* result)
{
uint32 col = Eluna::CHECKVAL<uint32>(L, 2);
if (col < RESULT->GetFieldCount())
Eluna::Push(L, RESULT->Fetch()[col].GetCString());
return 1;
}
/* OTHER */
int NextRow(lua_State* L, QueryResult* result)
{