Committed implementation of request am42697
This commit is contained in:
@ -194,6 +194,11 @@ native SQL_GetAffinity(driver[], maxlen);
|
||||
*/
|
||||
native SQL_SetAffinity(const driver[]);
|
||||
|
||||
/**
|
||||
* Returns the original query string that a query handle used.
|
||||
*/
|
||||
native SQL_GetQueryString(Handle:query, buffer[], maxlength);
|
||||
|
||||
/**
|
||||
* This function can be used to find out if a table in a Sqlite database exists.
|
||||
* (updated for newer API)
|
||||
|
@ -78,7 +78,11 @@ PrintQueryData(Handle:query)
|
||||
{
|
||||
new columns = SQL_NumColumns(query)
|
||||
new rows = SQL_NumResults(query)
|
||||
static querystring[2048]
|
||||
|
||||
SQL_GetQueryString(query, querystring, 2047)
|
||||
|
||||
server_print("Original query string: %s", querystring)
|
||||
server_print("Query columns: %d rows: %d", columns, rows)
|
||||
|
||||
new num
|
||||
|
Reference in New Issue
Block a user