Committed implementation of request am42697

This commit is contained in:
David Anderson
2006-08-18 02:19:38 +00:00
parent f7691a51c6
commit b7076fc572
14 changed files with 92 additions and 29 deletions

View File

@ -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)

View File

@ -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