diff --git a/plugins/include/sqlx.inc b/plugins/include/sqlx.inc index 82230fa4..7bd3e265 100644 --- a/plugins/include/sqlx.inc +++ b/plugins/include/sqlx.inc @@ -61,6 +61,7 @@ native Handle:SQL_Connect(Handle:cn_tuple, &errcode, error[], maxlength); */ native Handle:SQL_PrepareQuery(Handle:db, const fmt[], {Float,_}:...); + #define TQUERY_CONNECT_FAILED -2 #define TQUERY_QUERY_FAILED -1 #define TQUERY_SUCCESS 0 @@ -176,6 +177,12 @@ native SQL_FieldNumToName(Handle:query, num, name[], maxlength); native SQL_FieldNameToNum(Handle:query, const name[]); +/** + * Rewinds a result set to the first row. + */ +native SQL_Rewind(Handle:query); + + /** * Returns the insert id of the last INSERT query. * Returns 0 otherwise.