diff options
author | unknown <vva@genie.(none)> | 2002-10-30 17:38:07 +0400 |
---|---|---|
committer | unknown <vva@genie.(none)> | 2002-10-30 17:38:07 +0400 |
commit | 8dbfebc728654b7469dea5c17822f2a4e9d0c099 (patch) | |
tree | 8de66b223798451df2c168ec3bcf40e6e0be24dd /sql/sql_help.cc | |
parent | b8798d25ab71436bf690ee8ae48285a655c5487e (diff) | |
download | mariadb-git-8dbfebc728654b7469dea5c17822f2a4e9d0c099.tar.gz |
addition correction for 'help' command
include/mysqld_error.h:
change count of error messages
libmysqld/Makefile.am:
add sql_help.cc
sql/sql_help.cc:
eliminate warnings
sql/sql_yacc.yy:
add ';' to end of 'help' command
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r-- | sql/sql_help.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc index 72cf1fdff7d..d2bea9ba44b 100644 --- a/sql/sql_help.cc +++ b/sql/sql_help.cc @@ -361,8 +361,8 @@ int mysqld_help (THD *thd, const char *mask) } else if (count==1) { - if (res= get_all_names_for_category(thd, file_leafs, - category_id,&function_list)) + if ((res= get_all_names_for_category(thd, file_leafs, + category_id,&function_list))) goto end; List_iterator<String> it(function_list); String *cur_leaf, example; @@ -371,8 +371,8 @@ int mysqld_help (THD *thd, const char *mask) example.append(*cur_leaf); example.append("\n",1); } - if (res= send_answer_1(thd, categories_list.head()->ptr(), - "Y","",example.ptr())) + if ((res= send_answer_1(thd, categories_list.head()->ptr(), + "Y","",example.ptr()))) goto end; } else @@ -387,8 +387,8 @@ int mysqld_help (THD *thd, const char *mask) } else if (count==1) { - if (res= send_answer_1(thd,name->ptr(),"N", - description->ptr(), example->ptr())) + if ((res= send_answer_1(thd,name->ptr(),"N", + description->ptr(), example->ptr()))) goto end; } else if((res= send_header_2(thd)) || |