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
0cc14310
Commit
0cc14310
authored
Mar 06, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused var
Reduce code
parent
a336f485
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
client/mysqltest.c
client/mysqltest.c
+6
-7
No files found.
client/mysqltest.c
View file @
0cc14310
...
@@ -1346,7 +1346,6 @@ enum enum_operator
...
@@ -1346,7 +1346,6 @@ enum enum_operator
SYNOPSIS
SYNOPSIS
do_modify_var()
do_modify_var()
query called command
query called command
name human readable name of operator
operator operation to perform on the var
operator operation to perform on the var
DESCRIPTION
DESCRIPTION
...
@@ -1355,15 +1354,16 @@ enum enum_operator
...
@@ -1355,15 +1354,16 @@ enum enum_operator
*/
*/
int
do_modify_var
(
struct
st_query
*
query
,
const
char
*
name
,
int
do_modify_var
(
struct
st_query
*
query
,
enum
enum_operator
operator
)
enum
enum_operator
operator
)
{
{
const
char
*
p
=
query
->
first_argument
;
const
char
*
p
=
query
->
first_argument
;
VAR
*
v
;
VAR
*
v
;
if
(
!*
p
)
if
(
!*
p
)
die
(
"Missing argument
s to %s"
,
name
);
die
(
"Missing argument
to %.*s"
,
query
->
first_word_len
,
query
->
query
);
if
(
*
p
!=
'$'
)
if
(
*
p
!=
'$'
)
die
(
"First argument to %s must be a variable (start with $)"
,
name
);
die
(
"First argument to %.*s must be a variable (start with $)"
,
query
->
first_word_len
,
query
->
query
);
v
=
var_get
(
p
,
&
p
,
1
,
0
);
v
=
var_get
(
p
,
&
p
,
1
,
0
);
switch
(
operator
)
{
switch
(
operator
)
{
case
DO_DEC
:
case
DO_DEC
:
...
@@ -1697,7 +1697,6 @@ int do_sleep(struct st_query *query, my_bool real_sleep)
...
@@ -1697,7 +1697,6 @@ int do_sleep(struct st_query *query, my_bool real_sleep)
char
*
p
=
query
->
first_argument
;
char
*
p
=
query
->
first_argument
;
char
*
sleep_start
,
*
sleep_end
=
query
->
end
;
char
*
sleep_start
,
*
sleep_end
=
query
->
end
;
double
sleep_val
;
double
sleep_val
;
const
char
*
cmd
=
(
real_sleep
?
"real_sleep"
:
"sleep"
);
while
(
my_isspace
(
charset_info
,
*
p
))
while
(
my_isspace
(
charset_info
,
*
p
))
p
++
;
p
++
;
...
@@ -4617,8 +4616,8 @@ int main(int argc, char **argv)
...
@@ -4617,8 +4616,8 @@ int main(int argc, char **argv)
case
Q_SERVER_START
:
do_server_start
(
q
);
break
;
case
Q_SERVER_START
:
do_server_start
(
q
);
break
;
case
Q_SERVER_STOP
:
do_server_stop
(
q
);
break
;
case
Q_SERVER_STOP
:
do_server_stop
(
q
);
break
;
#endif
#endif
case
Q_INC
:
do_modify_var
(
q
,
"inc"
,
DO_INC
);
break
;
case
Q_INC
:
do_modify_var
(
q
,
DO_INC
);
break
;
case
Q_DEC
:
do_modify_var
(
q
,
"dec"
,
DO_DEC
);
break
;
case
Q_DEC
:
do_modify_var
(
q
,
DO_DEC
);
break
;
case
Q_ECHO
:
do_echo
(
q
);
query_executed
=
1
;
break
;
case
Q_ECHO
:
do_echo
(
q
);
query_executed
=
1
;
break
;
case
Q_SYSTEM
:
do_system
(
q
);
break
;
case
Q_SYSTEM
:
do_system
(
q
);
break
;
case
Q_DELIMITER
:
case
Q_DELIMITER
:
...
...
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