MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / SQL_FetchRow

Function SQL_FetchRow

core/logic/smn_database.cpp:1066–1083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1064}
1065
1066static cell_t SQL_FetchRow(IPluginContext *pContext, const cell_t *params)
1067{
1068 IQuery *query;
1069 HandleError err;
1070
1071 if ((err = ReadQueryHndl(params[1], pContext, &query)) != HandleError_None)
1072 {
1073 return pContext->ThrowNativeError("Invalid query Handle %x (error: %d)", params[1], err);
1074 }
1075
1076 IResultSet *rs = query->GetResultSet();
1077 if (!rs)
1078 {
1079 return pContext->ThrowNativeError("No current result set");
1080 }
1081
1082 return (rs->FetchRow() != NULL) ? true : false;
1083}
1084
1085static cell_t SQL_MoreRows(IPluginContext *pContext, const cell_t *params)
1086{

Callers

nothing calls this directly

Calls 3

ReadQueryHndlFunction · 0.85
GetResultSetMethod · 0.45
FetchRowMethod · 0.45

Tested by

no test coverage detected