summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <hery.ramilison@oracle.com>2011-03-16 15:11:20 +0100
committerMySQL Build Team <build@mysql.com>2011-03-16 15:11:20 +0100
commit753c406994b348e65f6d099096178e457628e475 (patch)
tree3b31ba86b07ae94f5ca16e551fc8157d0188b2ab /client
parent62e83ad8c074b4a9c937760daf705b02c5d85e8b (diff)
parentfe12c639b1eae3fe42664f3817a2677795826888 (diff)
downloadmariadb-git-753c406994b348e65f6d099096178e457628e475.tar.gz
Merge from mysql-5.5.10-release
Diffstat (limited to 'client')
-rw-r--r--client/mysqladmin.cc7
-rw-r--r--client/mysqldump.c4
-rw-r--r--client/mysqltest.cc2
3 files changed, 7 insertions, 6 deletions
diff --git a/client/mysqladmin.cc b/client/mysqladmin.cc
index 580caa38c0d..82cea8e78c9 100644
--- a/client/mysqladmin.cc
+++ b/client/mysqladmin.cc
@@ -369,7 +369,8 @@ int main(int argc,char *argv[])
/* Return 0 if all commands are PING */
for (; argc > 0; argv++, argc--)
{
- if (find_type(argv[0], &command_typelib, 2) != ADMIN_PING)
+ if (find_type(argv[0], &command_typelib, FIND_TYPE_BASIC) !=
+ ADMIN_PING)
{
error= 1;
break;
@@ -592,7 +593,7 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
for (; argc > 0 ; argv++,argc--)
{
- switch (find_type(argv[0],&command_typelib,2)) {
+ switch (find_type(argv[0],&command_typelib, FIND_TYPE_BASIC)) {
case ADMIN_CREATE:
{
char buff[FN_REFLEN+20];
@@ -931,7 +932,7 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
if (typed_password[0])
{
- bool old= (find_type(argv[0], &command_typelib, 2) ==
+ bool old= (find_type(argv[0], &command_typelib, FIND_TYPE_BASIC) ==
ADMIN_OLD_PASSWORD);
#ifdef __WIN__
size_t pw_len= strlen(typed_password);
diff --git a/client/mysqldump.c b/client/mysqldump.c
index c2d526edd4e..90d63bff8e7 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -4650,7 +4650,7 @@ static ulong find_set(TYPELIB *lib, const char *x, uint length,
for (; pos != end && *pos != ','; pos++) ;
var_len= (uint) (pos - start);
strmake(buff, start, min(sizeof(buff) - 1, var_len));
- find= find_type(buff, lib, var_len);
+ find= find_type(buff, lib, FIND_TYPE_BASIC);
if (!find)
{
*err_pos= (char*) start;
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index ffc99a3dffd..dc1bba588f0 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -8017,7 +8017,7 @@ void get_command_type(struct st_command* command)
save= command->query[command->first_word_len];
command->query[command->first_word_len]= 0;
- type= find_type(command->query, &command_typelib, 1+2);
+ type= find_type(command->query, &command_typelib, FIND_TYPE_NO_PREFIX);
command->query[command->first_word_len]= save;
if (type > 0)
{