summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-05-27 18:19:44 +0300
committerGeorgi Kodinov <joro@sun.com>2009-05-27 18:19:44 +0300
commitc675beab98d90e2f1a606c17d106740d1394071a (patch)
treeef20b1214af011ce8ef6a3fb904fb115e723cb71 /sql/sql_lex.cc
parentc8a7b7914203a95c30ce45e800f7676744248bf7 (diff)
parent80730df7d634e1a620c864d6665d6e66ccad447a (diff)
downloadmariadb-git-c675beab98d90e2f1a606c17d106740d1394071a.tar.gz
merged 5.0-bugteam to 5.1-bugteam
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index b96ac91679b..03da3c2338a 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -433,6 +433,16 @@ bool is_keyword(const char *name, uint len)
return get_hash_symbol(name,len,0)!=0;
}
+/**
+ Check if name is a sql function
+
+ @param name checked name
+
+ @return is this a native function or not
+ @retval 0 name is a function
+ @retval 1 name isn't a function
+*/
+
bool is_lex_native_function(const LEX_STRING *name)
{
DBUG_ASSERT(name != NULL);