Removal of un-threaded queries created a problem.
#1

The complete removal of un-threaded queries in BlueG's MySQL plugin has created an issue.

It is not anymore possible (as far as I know) returning from a function the result of a query because it's retrieved in another callback and not in the called function. By that I mean, for example:

Pseudocode:
pawn Код:
stock getDBID("Name")
{
    sql_query("query the name");
    databaseid = retrieve_database_id;
    return databaseid;
}
Now, you can't do such thing. You must do something like:

Pseudocode:
pawn Код:
stock getDBID("Name")
{
    sql_query("query the name");
    retrieve_database_id("callback_getdb", params);
}

forward callback_getdb(params);
public callback_getdb(params)
{
    databaseid = id_found_from_query;
}
Now, maybe with #emit functions it might be possible, but I might be wrong.

Any idea on how to fix this?
Reply


Messages In This Thread
Removal of un-threaded queries created a problem. - by GiamPy. - 01.01.2014, 21:12
Re: Removal of un-threaded queries created a problem. - by Scenario - 01.01.2014, 21:25
Re: Removal of un-threaded queries created a problem. - by Kar - 01.01.2014, 21:25
Re: Removal of un-threaded queries created a problem. - by GiamPy. - 01.01.2014, 21:31
Re: Removal of un-threaded queries created a problem. - by Scenario - 01.01.2014, 21:41
Re: Removal of un-threaded queries created a problem. - by GiamPy. - 01.01.2014, 21:48

Forum Jump:


Users browsing this thread: 1 Guest(s)