| 1064 | } |
| 1065 | |
| 1066 | static 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 | |
| 1085 | static cell_t SQL_MoreRows(IPluginContext *pContext, const cell_t *params) |
| 1086 | { |
nothing calls this directly
no test coverage detected