Added backwards MySQL compatibility.
This commit is contained in:
parent
4ab6b083c1
commit
3d521e5d30
|
@ -77,9 +77,3 @@ native dbi_error(_sql, _error[], _len);
|
||||||
* "mysql", "pgsql", "mssql"
|
* "mysql", "pgsql", "mssql"
|
||||||
*/
|
*/
|
||||||
native dbi_type(_type[], _len);
|
native dbi_type(_type[], _len);
|
||||||
|
|
||||||
/* Backwards compatibility */
|
|
||||||
stock dbi_getfield(_sql, _fieldnum, _dest[], _maxlen)
|
|
||||||
{
|
|
||||||
return dbi_field(_sql, 1, _fieldnum, _dest, _maxlen)
|
|
||||||
}
|
|
|
@ -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). */
|
/* Uses an existing connection (sql) to perform a new query (query) (might close previous query if any). */
|
||||||
stock mysql_query(sql,query[])
|
native mysql_query(sql,query[]);
|
||||||
{
|
|
||||||
dbi_query(sql, query)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Prepares next row of current query (sql) for read access ; returns the number of the row, 0 at end. */
|
/* Prepares next row of current query (sql) for read access ; returns the number of the row, 0 at end. */
|
||||||
stock mysql_nextrow(sql)
|
native mysql_nextrow(sql);
|
||||||
{
|
|
||||||
dbi_nextrow(sql)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Stores specified column (fieldnum) of current query (sql) in (dest) with (maxlength) characters maximum. */
|
/* Stores specified column (fieldnum) of current query (sql) in (dest) with (maxlength) characters maximum. */
|
||||||
stock mysql_getfield(sql,fieldnum,dest[],maxlength)
|
native mysql_getfield(sql,fieldnum,dest[],maxlength);
|
||||||
{
|
|
||||||
dbi_getfield(sql, fieldnum, dest, maxlength)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Clears query (sql) and closes connection (if any other plugin doesn't use it). */
|
/* Clears query (sql) and closes connection (if any other plugin doesn't use it). */
|
||||||
stock mysql_close(sql)
|
stock mysql_close(sql)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user