SQL_TQuery

Last Updated2015-10-30
Created At2007-07-13

Executes a simple query via a thread. The query Handle is passed through the callback. The database Handle returned through the callback is always a new Handle, and if necessary, SQL_IsSameConnection() should be used to test against other connections. The query Handle returned through the callback is temporary and destroyed at the end of the callback. If you need to hold onto it, use CloneHandle().

native void SQL_TQuery(Handle database, SQLTCallback callback, const char[] query, any data = 0, DBPriority prio = DBPrio_Normal)

Parameters

Handle database
A database Handle.
SQLTCallback callback
Callback; database is in "owner" and the query Handle is passed in "hndl".
const char[] query
Query string.
any data
Extra data value to pass to the callback.
Priority queue to use.

Return Value

void

Error

Invalid database Handle.