summaryrefslogtreecommitdiffstats
path: root/sql/item_create.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_create.h')
-rw-r--r--sql/item_create.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/item_create.h b/sql/item_create.h
index 80395960..ea32d661 100644
--- a/sql/item_create.h
+++ b/sql/item_create.h
@@ -324,6 +324,12 @@ public:
bool init(size_t count);
bool append(const Native_func_registry array[], size_t count);
bool remove(const Native_func_registry array[], size_t count);
+ bool replace(const Native_func_registry array[], size_t count)
+ {
+ DBUG_ENTER("Native_functions_hash::replace");
+ remove(array, count);
+ DBUG_RETURN(append(array, count));
+ }
void cleanup();
/**
Find the native function builder associated with a given function name.
@@ -335,6 +341,7 @@ public:
};
extern MYSQL_PLUGIN_IMPORT Native_functions_hash native_functions_hash;
+extern MYSQL_PLUGIN_IMPORT Native_functions_hash native_functions_hash_oracle;
extern const Native_func_registry func_array[];
extern const size_t func_array_length;
@@ -377,4 +384,3 @@ public:
#endif
-