* Fixes #615 - Fixed script command 'query_sql' not returning any results.
This commit is contained in:
aleos89 2015-09-02 10:32:00 -04:00
parent 217087a402
commit ebaefc1476

View File

@ -4415,9 +4415,9 @@ void script_generic_ui_array_expand (unsigned int plus)
RECREATE(generic_ui_array, unsigned int, generic_ui_array_size); RECREATE(generic_ui_array, unsigned int, generic_ui_array_size);
} }
#ifdef BETA_THREAD_TEST int buildin_query_sql_sub(struct script_state *st, Sql *handle);
int buildin_query_sql_sub(struct script_state* st, Sql* handle);
#ifdef BETA_THREAD_TEST
/* used to receive items the queryThread has already processed */ /* used to receive items the queryThread has already processed */
int queryThread_timer(int tid, unsigned int tick, int id, intptr_t data) { int queryThread_timer(int tid, unsigned int tick, int id, intptr_t data) {
int i, cursor = 0; int i, cursor = 0;
@ -15948,7 +15948,7 @@ int buildin_query_sql_sub(struct script_state* st, Sql* handle)
const char* query; const char* query;
struct script_data* data; struct script_data* data;
const char* name; const char* name;
int max_rows = SCRIPT_MAX_ARRAYSIZE; // maximum number of rows unsigned int max_rows = SCRIPT_MAX_ARRAYSIZE; // maximum number of rows
int num_vars; int num_vars;
int num_cols; int num_cols;