mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.0-tmp
This commit is contained in:
@@ -59,6 +59,8 @@ static my_bool have_innodb= FALSE;
|
||||
|
||||
static const char *opt_basedir= "./";
|
||||
|
||||
static longlong opt_getopt_ll_test= 0;
|
||||
|
||||
static int embedded_server_arg_count= 0;
|
||||
static char *embedded_server_args[MAX_SERVER_ARGS];
|
||||
|
||||
@@ -14351,6 +14353,19 @@ static void test_bug11718()
|
||||
rc= mysql_query(mysql, "drop table t1, t2");
|
||||
myquery(rc);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Bug #12925: Bad handling of maximum values in getopt
|
||||
*/
|
||||
static void test_bug12925()
|
||||
{
|
||||
myheader("test_bug12925");
|
||||
if (opt_getopt_ll_test)
|
||||
DIE_UNLESS(opt_getopt_ll_test == LL(25600*1024*1024));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Read and parse arguments and MySQL options from my.cnf
|
||||
*/
|
||||
@@ -14393,6 +14408,9 @@ static struct my_option client_test_long_options[] =
|
||||
{"user", 'u', "User for login if not current user", (char **) &opt_user,
|
||||
(char **) &opt_user, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"getopt-ll-test", 'g', "Option for testing bug in getopt library",
|
||||
(char **) &opt_getopt_ll_test, (char **) &opt_getopt_ll_test, 0,
|
||||
GET_LL, REQUIRED_ARG, 0, 0, LONGLONG_MAX, 0, 0, 0},
|
||||
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
|
||||
};
|
||||
|
||||
@@ -14598,6 +14616,7 @@ static struct my_tests_st my_tests[]= {
|
||||
{ "test_bug10760", test_bug10760 },
|
||||
{ "test_bug12001", test_bug12001 },
|
||||
{ "test_bug11718", test_bug11718 },
|
||||
{ "test_bug12925", test_bug12925 },
|
||||
{ "test_bug11909", test_bug11909 },
|
||||
{ "test_bug11901", test_bug11901 },
|
||||
{ "test_bug11904", test_bug11904 },
|
||||
|
||||
Reference in New Issue
Block a user