summaryrefslogtreecommitdiff
path: root/storage/federated
diff options
context:
space:
mode:
authorStaale Smedseng <staale.smedseng@sun.com>2010-03-14 17:01:45 +0100
committerStaale Smedseng <staale.smedseng@sun.com>2010-03-14 17:01:45 +0100
commitc7fad393fd73cc941190fde1b56a2f9e68e9d132 (patch)
tree58c6509541b2a20be10d2701ee31d4394c45ad8a /storage/federated
parent57a96c77dbd136b5f31f610d0270d7d7b111ddbb (diff)
downloadmariadb-git-c7fad393fd73cc941190fde1b56a2f9e68e9d132.tar.gz
Bug #49829 Many "hides virtual function" warnings with
SunStudio SunStudio compilers of late warn about methods that might hide methods in base classes due to the use of overloading combined with overriding. SunStudio also warns about variables defined in local socpe or method arguments that have the same name as a member attribute of the class. This patch renames methods that might hide base class methods, to make it easier both for humans and compilers to see what is actually called. It also renames variables in local scope. sql/field.cc: Local scope variable or method argument same as class attribute. sql/item_cmpfunc.cc: Local scope variable or method argument same as class attribute. sql/item_create.cc: Renaming base class create() to create_func(). sql/item_create.h: Renaming base class create() to create_func(). sql/protocol.cc: Local scope variable or method argument same as class attribute. sql/sql_profile.cc: Local scope variable or method argument same as class attribute. sql/sql_select.cc: Local scope variable or method argument same as class attribute. sql/sql_yacc.yy: Renaming base class create() to create_func(). storage/federated/ha_federated.cc: Local scope variable or method argument same as class attribute. storage/myisammrg/ha_myisammrg.cc: Local scope variable or method argument same as class attribute.
Diffstat (limited to 'storage/federated')
-rw-r--r--storage/federated/ha_federated.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc
index f8dde34b82b..955c35ad71b 100644
--- a/storage/federated/ha_federated.cc
+++ b/storage/federated/ha_federated.cc
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004 MySQL AB
+/* Copyright (c) 2004, 2010 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
@@ -1253,7 +1253,7 @@ bool ha_federated::create_where_from_key(String *to,
const key_range *start_key,
const key_range *end_key,
bool from_records_in_range,
- bool eq_range)
+ bool eq_range_arg)
{
bool both_not_null=
(start_key != NULL && end_key != NULL) ? TRUE : FALSE;
@@ -1360,7 +1360,7 @@ bool ha_federated::create_where_from_key(String *to,
}
break;
case HA_READ_AFTER_KEY:
- if (eq_range)
+ if (eq_range_arg)
{
if (tmp.append("1=1")) // Dummy
goto err;
@@ -3208,14 +3208,14 @@ bool ha_federated::get_error_message(int error, String* buf)
@details Call @c mysql_store_result() to save a result set then
append it to the stored results array.
- @param[in] mysql MySLQ connection structure.
+ @param[in] mysql_arg MySLQ connection structure.
@return Stored result set (MYSQL_RES object).
*/
-MYSQL_RES *ha_federated::store_result(MYSQL *mysql)
+MYSQL_RES *ha_federated::store_result(MYSQL *mysql_arg)
{
- MYSQL_RES *result= mysql_store_result(mysql);
+ MYSQL_RES *result= mysql_store_result(mysql_arg);
DBUG_ENTER("ha_federated::store_result");
if (result)
{