diff options
Diffstat (limited to 'client/mysqltest.c')
-rw-r--r-- | client/mysqltest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 7ba57f7515c..1c98ea3bf50 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -1514,7 +1514,7 @@ void var_query_set(VAR *var, const char *query, const char** query_end) void var_set_query_get_value(struct st_command *command, VAR *var) { - ulong row_no; + long row_no; int col_no= -1; MYSQL_RES* res; MYSQL* mysql= &cur_con->mysql; @@ -1591,7 +1591,7 @@ void var_set_query_get_value(struct st_command *command, VAR *var) while ((row= mysql_fetch_row(res))) { - if (++rows == row_no) + if (++rows == (ulong) row_no) { DBUG_PRINT("info", ("At row %ld, column %d is '%s'", @@ -2584,7 +2584,7 @@ void do_send_quit(struct st_command *command) DBUG_PRINT("info", ("con->name: %s", con->name)); if (!strcmp(con->name, name)) { - simple_command(&con->mysql,COM_QUIT,NullS,0,1); + simple_command(&con->mysql,COM_QUIT,0,0,1); DBUG_VOID_RETURN; } } |