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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
90a2456f
Commit
90a2456f
authored
Dec 16, 2003
by
jani@rhols221.adsl.netsonic.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some minor code clean up.
parent
96555b5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
client/mysqltest.c
client/mysqltest.c
+3
-3
No files found.
client/mysqltest.c
View file @
90a2456f
...
@@ -1630,7 +1630,7 @@ int do_while(struct st_query* q)
...
@@ -1630,7 +1630,7 @@ int do_while(struct st_query* q)
my_bool
end_of_query
(
int
c
,
char
*
p
)
my_bool
end_of_query
(
int
c
,
char
*
p
)
{
{
uint
i
=
0
,
j
;
uint
i
,
j
;
int
tmp
[
MAX_DELIMITER
]
=
{
0
};
int
tmp
[
MAX_DELIMITER
]
=
{
0
};
for
(
i
=
0
;
c
==
*
(
delimiter
+
i
)
&&
i
<
delimiter_length
;
for
(
i
=
0
;
c
==
*
(
delimiter
+
i
)
&&
i
<
delimiter_length
;
...
@@ -1642,7 +1642,7 @@ my_bool end_of_query(int c, char* p)
...
@@ -1642,7 +1642,7 @@ my_bool end_of_query(int c, char* p)
ungetc
(
tmp
[
j
],
*
cur_file
);
ungetc
(
tmp
[
j
],
*
cur_file
);
if
(
i
==
delimiter_length
)
if
(
i
==
delimiter_length
)
{
{
ungetc
(
tmp
[
j
],
*
cur_file
);
ungetc
(
tmp
[
i
],
*
cur_file
);
*
p
=
0
;
*
p
=
0
;
return
1
;
return
1
;
}
}
...
@@ -2189,7 +2189,7 @@ int run_query(MYSQL* mysql, struct st_query* q, int flags)
...
@@ -2189,7 +2189,7 @@ int run_query(MYSQL* mysql, struct st_query* q, int flags)
{
{
replace_dynstr_append_mem
(
ds
,
query
,
query_len
);
replace_dynstr_append_mem
(
ds
,
query
,
query_len
);
sprintf
(
buff
,
"%s
\n
"
,
delimiter
);
sprintf
(
buff
,
"%s
\n
"
,
delimiter
);
dynstr_append_mem
(
ds
,
buff
,
strlen
(
delimiter
)
+
1
);
dynstr_append_mem
(
ds
,
buff
,
delimiter_length
+
1
);
}
}
if
(
!
(
flags
&
QUERY_REAP
))
if
(
!
(
flags
&
QUERY_REAP
))
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
...
...
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