diff --git a/plugins/include/dbi.inc b/plugins/include/dbi.inc index 34033df9..c782ef11 100755 --- a/plugins/include/dbi.inc +++ b/plugins/include/dbi.inc @@ -77,9 +77,3 @@ native dbi_error(_sql, _error[], _len); * "mysql", "pgsql", "mssql" */ native dbi_type(_type[], _len); - -/* Backwards compatibility */ -stock dbi_getfield(_sql, _fieldnum, _dest[], _maxlen) -{ - return dbi_field(_sql, 1, _fieldnum, _dest, _maxlen) -} \ No newline at end of file diff --git a/plugins/include/mysql.inc b/plugins/include/mysql.inc index b0668b65..3facf025 100755 --- a/plugins/include/mysql.inc +++ b/plugins/include/mysql.inc @@ -22,22 +22,13 @@ stock mysql_connect(host[],user[],pass[],dbname[],error[],maxlength) } /* Uses an existing connection (sql) to perform a new query (query) (might close previous query if any). */ -stock mysql_query(sql,query[]) -{ - dbi_query(sql, query) -} +native mysql_query(sql,query[]); /* Prepares next row of current query (sql) for read access ; returns the number of the row, 0 at end. */ -stock mysql_nextrow(sql) -{ - dbi_nextrow(sql) -} +native mysql_nextrow(sql); /* Stores specified column (fieldnum) of current query (sql) in (dest) with (maxlength) characters maximum. */ -stock mysql_getfield(sql,fieldnum,dest[],maxlength) -{ - dbi_getfield(sql, fieldnum, dest, maxlength) -} +native mysql_getfield(sql,fieldnum,dest[],maxlength); /* Clears query (sql) and closes connection (if any other plugin doesn't use it). */ stock mysql_close(sql)