[Half-Life AMXX] / include / dbi.inc Repository:
ViewVC logotype

Diff of /include/dbi.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1, Tue Oct 30 09:08:11 2007 UTC revision 17, Fri Nov 16 15:29:57 2007 UTC
# Line 31  Line 31 
31  {  {
32          SQL_FAILED=0,          SQL_FAILED=0,
33          SQL_OK          SQL_OK
34  }  };
35    
36  enum Result  enum Result
37  {  {
38          RESULT_FAILED=-1,          RESULT_FAILED=-1,
39          RESULT_NONE,          RESULT_NONE,
40          RESULT_OK          RESULT_OK
41  }  };
42    
43  /* This will return a number equal to or below 0 on failure.  /* This will return a number equal to or below 0 on failure.
44   * If it does fail, the error will be mirrored in dbi_error()   * If it does fail, the error will be mirrored in dbi_error()
# Line 53  Line 53 
53   * If greater than zero, make sure to call dbi_free_result() on it!   * If greater than zero, make sure to call dbi_free_result() on it!
54   *  The return is a handle to the result set   *  The return is a handle to the result set
55   */   */
56  native Result:dbi_query(Sql:_sql, _query[], {Float,_}:...);  native Result:dbi_query(Sql:_sql, _query[], any:...);
57    
58  /* Has the same usage as dbi_query, but this native returns by  /* Has the same usage as dbi_query, but this native returns by
59   * reference the number of rows affected in the query. If the   * reference the number of rows affected in the query. If the
60   * query fails rows will be equal to -1.   * query fails rows will be equal to -1.
61   */   */
62  native Result:dbi_query2(Sql:_sql, &rows, _query[], {Float,_}:...);  native Result:dbi_query2(Sql:_sql, &rows, _query[], any:...);
63    
64  /* Returns 0 on failure or End of Results.  /* Returns 0 on failure or End of Results.
65   * Advances result pointer by one row.   * Advances result pointer by one row.

Legend:
Removed from v.1  
changed lines
  Added in v.17

Contact
ViewVC Help
Powered by ViewVC 1.0.4