diff options
author | unknown <pem@mysql.com> | 2003-04-03 20:19:16 +0200 |
---|---|---|
committer | unknown <pem@mysql.com> | 2003-04-03 20:19:16 +0200 |
commit | 4f9ae16c7418eeb1465d54d7d96f78af3162d136 (patch) | |
tree | e6377bcbc84a6bbfc2486878b18073ea5274cfa0 /sql/item_sum.cc | |
parent | 7b85e459af79c9e04ee86c5ee7a5f65d79f000a4 (diff) | |
download | mariadb-git-4f9ae16c7418eeb1465d54d7d96f78af3162d136.tar.gz |
Got rid of silly compiler errors on HP-UX and SGI Irix.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 511832315f9..783a38b0ebe 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -1631,6 +1631,8 @@ void Item_func_group_concat::reset_field() bool Item_func_group_concat::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref) { + uint i; /* for loop variable */ + if (!thd->allow_sum_func) { my_error(ER_INVALID_GROUP_FUNC_USE,MYF(0)); @@ -1639,13 +1641,13 @@ Item_func_group_concat::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref) thd->allow_sum_func= 0; maybe_null= 0; - for (uint i= 0 ; i < arg_count ; i++) + for (i= 0 ; i < arg_count ; i++) { if (args[i]->fix_fields(thd, tables, args + i) || args[i]->check_cols(1)) return 1; maybe_null |= args[i]->maybe_null; } - for (int i= 0 ; i < arg_count_field ; i++) + for (i= 0 ; i < arg_count_field ; i++) { if (expr[i]->fix_fields(thd, tables, expr + i) || expr[i]->check_cols(1)) return 1; @@ -1655,7 +1657,7 @@ Item_func_group_concat::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref) Fix fields for order clause in function: GROUP_CONCAT(expr,... ORDER BY col,... ) */ - for (int i= 0 ; i < arg_count_order ; i++) + for (i= 0 ; i < arg_count_order ; i++) { ORDER *order_item= order[i]; Item *item=*order_item->item; |