added sql_rewind

This commit is contained in:
David Anderson 2007-04-25 13:19:42 +00:00
parent 5d6d0282b0
commit 359b7e25dd

View File

@ -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.