summaryrefslogtreecommitdiff
path: root/sql/sql_help.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-03-20 13:36:26 +0200
committerbell@sanja.is.com.ua <>2004-03-20 13:36:26 +0200
commitd095d4753ea2dad809f9e9d0195e46e8e87fd433 (patch)
treede1ab82158f22c98608b574edb706c1f3de591b5 /sql/sql_help.cc
parentede07fcdcf258fcfb296605dfade9531f3855339 (diff)
downloadmariadb-git-d095d4753ea2dad809f9e9d0195e46e8e87fd433.tar.gz
after review changes
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r--sql/sql_help.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc
index f3d5775133c..f6bae67c3b6 100644
--- a/sql/sql_help.cc
+++ b/sql/sql_help.cc
@@ -624,7 +624,7 @@ SQL_SELECT *prepare_select_for_name(THD *thd, const char *mask, uint mlen,
TABLE_LIST *tables, TABLE *table,
Field *pfname, int *error)
{
- Item *cond= new Item_func_like(new Item_field(pfname, 1),
+ Item *cond= new Item_func_like(new Item_field(pfname),
new Item_string(mask,mlen,pfname->charset()),
(char*) "\\");
if (thd->is_fatal_error)
@@ -744,10 +744,10 @@ int mysqld_help(THD *thd, const char *mask)
{
Field *topic_cat_id= used_fields[help_topic_help_category_id].field;
Item *cond_topic_by_cat=
- new Item_func_equal(new Item_field(topic_cat_id, 1),
+ new Item_func_equal(new Item_field(topic_cat_id),
new Item_int((int32)category_id));
Item *cond_cat_by_cat=
- new Item_func_equal(new Item_field(cat_cat_id, 1),
+ new Item_func_equal(new Item_field(cat_cat_id),
new Item_int((int32)category_id));
if (!(select_topics_by_cat= prepare_simple_select(thd,cond_topic_by_cat,
tables,tables[0].table,