summaryrefslogtreecommitdiff
path: root/sql/sp.h
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2003-02-26 19:22:29 +0100
committerunknown <pem@mysql.com>2003-02-26 19:22:29 +0100
commit1cf0b273aba70a301efa0554a7e766f948034ad5 (patch)
tree21d88c3a00a56c11d4f65d0c77e082899658ec01 /sql/sp.h
parentef0c55c5bded731693c80c47f26d9705106fae8e (diff)
downloadmariadb-git-1cf0b273aba70a301efa0554a7e766f948034ad5.tar.gz
Made stored FUNCTION invokation work almost always. Still buggy and unstable, and
various known problems, but good enough for a checkpoint commit. mysql-test/r/sp.result: New tests for invoking simple FUNCTIONs. mysql-test/t/sp.test: New tests for invoking simple FUNCTIONs. sql/item_func.cc: New Item_func_sp for stored FUNCTIONs. sql/item_func.h: New Item_func_sp for stored FUNCTIONs. sql/sp.cc: Close mysql.proc table earlier so recursive find_function calls work. Added temporary sp_function_exists() function for checking without parsing. sql/sp.h: Added temporary sp_function_exists() function for checking without parsing. sql/sp_head.cc: New code for executing a FUNCTION. (And reworked some of the old code in the process.) sql/sp_head.h: New code for executing a FUNCTION. sql/sp_rcontext.h: Added result slot for FUNCTIONs. sql/sql_lex.cc: Added check for stored FUNCTION, analogous to UDFs. sql/sql_parse.cc: sp_head::execute was renamed into execute_procedure. sql/sql_yacc.yy: Added parsing of stored FUNCTION invocation and code generation for RETURN statement.
Diffstat (limited to 'sql/sp.h')
-rw-r--r--sql/sp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sp.h b/sql/sp.h
index 084afb8c8e0..b9ade8fb3c1 100644
--- a/sql/sp.h
+++ b/sql/sp.h
@@ -46,4 +46,8 @@ sp_create_function(THD *thd, char *name, uint namelen, char *def, uint deflen);
int
sp_drop_function(THD *thd, char *name, uint namelen);
+// QQ Temporary until the function call detection in sql_lex has been reworked.
+bool
+sp_function_exists(THD *thd, LEX_STRING *name);
+
#endif /* _SP_H_ */