Commit d8af174a authored by unknown's avatar unknown

mysqltest.c:

  Typos.


client/mysqltest.c:
  Typos.
parent f31783cc
...@@ -2529,8 +2529,8 @@ my_bool end_of_query(int c) ...@@ -2529,8 +2529,8 @@ my_bool end_of_query(int c)
size size of the buffer i.e max size to read size size of the buffer i.e max size to read
DESCRIPTION DESCRIPTION
This function actually reads several lines an adds them to the This function actually reads several lines and adds them to the
buffer buf. It will continue to read until it finds what it believes buffer buf. It continues to read until it finds what it believes
is a complete query. is a complete query.
Normally that means it will read lines until it reaches the Normally that means it will read lines until it reaches the
...@@ -3760,7 +3760,7 @@ static void handle_no_error(struct st_query *q) ...@@ -3760,7 +3760,7 @@ static void handle_no_error(struct st_query *q)
command - currrent command pointer command - currrent command pointer
query - query string to execute query - query string to execute
query_len - length query string to execute query_len - length query string to execute
ds - output buffer wherte to store result form query ds - output buffer where to store result form query
RETURN VALUE RETURN VALUE
error - function will not return error - function will not return
...@@ -3778,7 +3778,7 @@ static void run_query_stmt(MYSQL *mysql, struct st_query *command, ...@@ -3778,7 +3778,7 @@ static void run_query_stmt(MYSQL *mysql, struct st_query *command,
DBUG_PRINT("query", ("'%-.60s'", query)); DBUG_PRINT("query", ("'%-.60s'", query));
/* /*
Init a new stmt if it's not alreday one created for this connectoon Init a new stmt if it's not already one created for this connection
*/ */
if(!(stmt= cur_con->stmt)) if(!(stmt= cur_con->stmt))
{ {
...@@ -3867,7 +3867,7 @@ static void run_query_stmt(MYSQL *mysql, struct st_query *command, ...@@ -3867,7 +3867,7 @@ static void run_query_stmt(MYSQL *mysql, struct st_query *command,
goto end; goto end;
} }
/* If we got here the statement was both executed and read succeesfully */ /* If we got here the statement was both executed and read successfully */
handle_no_error(command); handle_no_error(command);
if (!disable_result_log) if (!disable_result_log)
{ {
...@@ -4594,7 +4594,7 @@ int main(int argc, char **argv) ...@@ -4594,7 +4594,7 @@ int main(int argc, char **argv)
case Q_QUERY_HORIZONTAL: case Q_QUERY_HORIZONTAL:
{ {
my_bool old_display_result_vertically= display_result_vertically; my_bool old_display_result_vertically= display_result_vertically;
/* fix up query pointer if this is * first iteration for this line */ /* fix up query pointer if this is first iteration for this line */
if (q->query == q->query_buf) if (q->query == q->query_buf)
q->query += q->first_word_len + 1; q->query += q->first_word_len + 1;
display_result_vertically= (q->type==Q_QUERY_VERTICAL); display_result_vertically= (q->type==Q_QUERY_VERTICAL);
...@@ -4639,15 +4639,15 @@ int main(int argc, char **argv) ...@@ -4639,15 +4639,15 @@ int main(int argc, char **argv)
case Q_SEND: case Q_SEND:
if (!q->query[q->first_word_len]) if (!q->query[q->first_word_len])
{ {
/* This happens when we use 'send' on it's own line */ /* This happens when we use 'send' on its own line */
q_send_flag=1; q_send_flag=1;
break; break;
} }
/* fix up query pointer if this is * first iteration for this line */ /* fix up query pointer if this is first iteration for this line */
if (q->query == q->query_buf) if (q->query == q->query_buf)
q->query += q->first_word_len; q->query += q->first_word_len;
/* /*
run_query() can execute a query partially, depending on the flags run_query() can execute a query partially, depending on the flags.
QUERY_SEND flag without QUERY_REAP tells it to just send the QUERY_SEND flag without QUERY_REAP tells it to just send the
query and read the result some time later when reap instruction query and read the result some time later when reap instruction
is given on this connection. is given on this connection.
...@@ -4731,7 +4731,7 @@ int main(int argc, char **argv) ...@@ -4731,7 +4731,7 @@ int main(int argc, char **argv)
break; break;
case Q_ENABLE_PARSING: case Q_ENABLE_PARSING:
/* /*
Ensure we don't get parsing_disabled < 0 as this would accidently Ensure we don't get parsing_disabled < 0 as this would accidentally
disable code we don't want to have disabled disable code we don't want to have disabled
*/ */
if (parsing_disabled > 0) if (parsing_disabled > 0)
...@@ -4777,9 +4777,9 @@ int main(int argc, char **argv) ...@@ -4777,9 +4777,9 @@ int main(int argc, char **argv)
start_lineno= 0; start_lineno= 0;
/* /*
The whole test has been executed _sucessfully_ The whole test has been executed _sucessfully_.
Time to compare result or save it to record file Time to compare result or save it to record file.
The entire output from test is now kept in ds_res The entire output from test is now kept in ds_res.
*/ */
if (ds_res.length) if (ds_res.length)
{ {
...@@ -5509,7 +5509,7 @@ static int get_next_bit(REP_SET *set,uint lastpos) ...@@ -5509,7 +5509,7 @@ static int get_next_bit(REP_SET *set,uint lastpos)
} }
/* find if there is a same set in sets. If there is, use it and /* find if there is a same set in sets. If there is, use it and
free given set, else put in given set in sets and return it's free given set, else put in given set in sets and return its
position */ position */
static int find_set(REP_SETS *sets,REP_SET *find) static int find_set(REP_SETS *sets,REP_SET *find)
...@@ -5528,7 +5528,7 @@ static int find_set(REP_SETS *sets,REP_SET *find) ...@@ -5528,7 +5528,7 @@ static int find_set(REP_SETS *sets,REP_SET *find)
/* find if there is a found_set with same table_offset & found_offset /* find if there is a found_set with same table_offset & found_offset
If there is return offset to it, else add new offset and return pos. If there is return offset to it, else add new offset and return pos.
Pos returned is -offset-2 in found_set_structure because it's is Pos returned is -offset-2 in found_set_structure because it is
saved in set->next and set->next[] >= 0 points to next set and saved in set->next and set->next[] >= 0 points to next set and
set->next[] == -1 is reserved for end without replaces. set->next[] == -1 is reserved for end without replaces.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment