diff --git a/plugins/include/dbi.inc b/plugins/include/dbi.inc index 0e1472a9..2159f5bb 100755 --- a/plugins/include/dbi.inc +++ b/plugins/include/dbi.inc @@ -47,6 +47,12 @@ native Sql:dbi_connect(_host[], _user[], _pass[], _dbname[], _error[]="", _maxle */ native Result:dbi_query(Sql:_sql, _query[], {Float,_}:...); +/* Has the same usage as dbi_query, but this native returns by + * reference the number of rows affected in the query. If the + * query fails rows will be equal to -1. + */ +native Result:dbi_query2(Sql:_sql, &rows, _query[], {Float,_}:...); + /* Returns 0 on failure or End of Results. * Advances result pointer by one row. */