Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d8af174a
Commit
d8af174a
authored
Mar 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysqltest.c:
Typos. client/mysqltest.c: Typos.
parent
f31783cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
client/mysqltest.c
client/mysqltest.c
+15
-15
No files found.
client/mysqltest.c
View file @
d8af174a
...
@@ -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 an
d
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 wher
t
e 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 alre
day one created for this connecto
on
Init a new stmt if it's not alre
ady one created for this connecti
on
*/
*/
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 succe
e
sfully */
/* If we got here the statement was both executed and read succe
s
sfully */
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 accident
al
ly
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.
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment