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
24b84fbc
Commit
24b84fbc
authored
Jul 02, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unused (and unnecessary) mysqltest commands removed
parent
648a2fea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
65 deletions
+3
-65
client/mysqltest.c
client/mysqltest.c
+3
-65
No files found.
client/mysqltest.c
View file @
24b84fbc
...
@@ -224,7 +224,6 @@ Q_ENABLE_QUERY_LOG, Q_DISABLE_QUERY_LOG,
...
@@ -224,7 +224,6 @@ Q_ENABLE_QUERY_LOG, Q_DISABLE_QUERY_LOG,
Q_ENABLE_RESULT_LOG
,
Q_DISABLE_RESULT_LOG
,
Q_ENABLE_RESULT_LOG
,
Q_DISABLE_RESULT_LOG
,
Q_SERVER_START
,
Q_SERVER_STOP
,
Q_REQUIRE_MANAGER
,
Q_SERVER_START
,
Q_SERVER_STOP
,
Q_REQUIRE_MANAGER
,
Q_WAIT_FOR_SLAVE_TO_STOP
,
Q_WAIT_FOR_SLAVE_TO_STOP
,
Q_REQUIRE_VERSION
,
Q_REQUIRE_OS
,
Q_ENABLE_WARNINGS
,
Q_DISABLE_WARNINGS
,
Q_ENABLE_WARNINGS
,
Q_DISABLE_WARNINGS
,
Q_ENABLE_INFO
,
Q_DISABLE_INFO
,
Q_ENABLE_INFO
,
Q_DISABLE_INFO
,
Q_ENABLE_METADATA
,
Q_DISABLE_METADATA
,
Q_ENABLE_METADATA
,
Q_DISABLE_METADATA
,
...
@@ -297,8 +296,6 @@ const char *command_names[]=
...
@@ -297,8 +296,6 @@ const char *command_names[]=
"server_stop"
,
"server_stop"
,
"require_manager"
,
"require_manager"
,
"wait_for_slave_to_stop"
,
"wait_for_slave_to_stop"
,
"require_version"
,
"require_os"
,
"enable_warnings"
,
"enable_warnings"
,
"disable_warnings"
,
"disable_warnings"
,
"enable_info"
,
"enable_info"
,
...
@@ -818,63 +815,6 @@ int do_server_op(struct st_query* q,const char* op)
...
@@ -818,63 +815,6 @@ int do_server_op(struct st_query* q,const char* op)
}
}
#endif
#endif
int
do_require_version
(
struct
st_query
*
q
)
{
MYSQL
*
mysql
=
&
cur_con
->
mysql
;
MYSQL_RES
*
res
;
MYSQL_ROW
row
;
char
*
p
=
q
->
first_argument
,
*
ver_arg
;
uint
ver_arg_len
,
ver_len
;
LINT_INIT
(
res
);
if
(
!*
p
)
die
(
"Missing version argument in require_version
\n
"
);
ver_arg
=
p
;
while
(
*
p
&&
!
my_isspace
(
charset_info
,
*
p
))
p
++
;
*
p
=
0
;
ver_arg_len
=
p
-
ver_arg
;
if
(
mysql_query
(
mysql
,
"select version()"
)
||
!
(
res
=
mysql_store_result
(
mysql
)))
die
(
"Query failed while check server version: %s"
,
mysql_error
(
mysql
));
if
(
!
(
row
=
mysql_fetch_row
(
res
))
||
!
row
[
0
])
{
mysql_free_result
(
res
);
die
(
"Strange result from query while checking version"
);
}
ver_len
=
strlen
(
row
[
0
]);
if
(
ver_len
<
ver_arg_len
||
memcmp
(
row
[
0
],
ver_arg
,
ver_arg_len
))
{
mysql_free_result
(
res
);
abort_not_supported_test
();
}
mysql_free_result
(
res
);
return
0
;
}
int
do_require_os
(
struct
st_query
*
q
)
{
char
*
p
=
q
->
first_argument
,
*
os_arg
;
DBUG_ENTER
(
"do_require_os"
);
if
(
!*
p
)
die
(
"Missing version argument in require_os
\n
"
);
os_arg
=
p
;
while
(
*
p
&&
!
my_isspace
(
charset_info
,
*
p
))
p
++
;
*
p
=
0
;
if
(
strcmp
(
os_arg
,
"unix"
))
die
(
"For now only testing of os=unix is implemented
\n
"
);
#if defined(__NETWARE__) || defined(__WIN__) || defined(__OS2__)
abort_not_supported_test
();
#endif
DBUG_RETURN
(
0
);
}
int
do_source
(
struct
st_query
*
q
)
int
do_source
(
struct
st_query
*
q
)
{
{
char
*
p
=
q
->
first_argument
,
*
name
;
char
*
p
=
q
->
first_argument
,
*
name
;
...
@@ -2736,8 +2676,6 @@ int main(int argc, char **argv)
...
@@ -2736,8 +2676,6 @@ int main(int argc, char **argv)
case
Q_SOURCE
:
do_source
(
q
);
break
;
case
Q_SOURCE
:
do_source
(
q
);
break
;
case
Q_SLEEP
:
do_sleep
(
q
,
0
);
break
;
case
Q_SLEEP
:
do_sleep
(
q
,
0
);
break
;
case
Q_REAL_SLEEP
:
do_sleep
(
q
,
1
);
break
;
case
Q_REAL_SLEEP
:
do_sleep
(
q
,
1
);
break
;
case
Q_REQUIRE_VERSION
:
do_require_version
(
q
);
break
;
case
Q_REQUIRE_OS
:
do_require_os
(
q
);
break
;
case
Q_WAIT_FOR_SLAVE_TO_STOP
:
do_wait_for_slave_to_stop
(
q
);
break
;
case
Q_WAIT_FOR_SLAVE_TO_STOP
:
do_wait_for_slave_to_stop
(
q
);
break
;
case
Q_REQUIRE_MANAGER
:
do_require_manager
(
q
);
break
;
case
Q_REQUIRE_MANAGER
:
do_require_manager
(
q
);
break
;
#ifndef EMBEDDED_LIBRARY
#ifndef EMBEDDED_LIBRARY
...
...
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