summaryrefslogtreecommitdiff
path: root/sql/sp.h
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-02-04 00:48:40 +0300
committerKonstantin Osipov <kostja@sun.com>2010-02-04 00:48:40 +0300
commitf30d17e078dab10c8beded9a1c9b476dd4c67be9 (patch)
tree737674a83beb16e444848c8c4a66a3de08696065 /sql/sp.h
parent1397985d53b575ed51b51568a12695949ab00698 (diff)
parentb6685d35dcc45e4fc8eca53fa8f6d3315f2e6b89 (diff)
downloadmariadb-git-f30d17e078dab10c8beded9a1c9b476dd4c67be9.tar.gz
Merge next-mr -> next-4284.
Diffstat (limited to 'sql/sp.h')
-rw-r--r--sql/sp.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/sql/sp.h b/sql/sp.h
index d9d3fc281ee..886933eb7cf 100644
--- a/sql/sp.h
+++ b/sql/sp.h
@@ -34,6 +34,32 @@
#define SP_BODY_TOO_LONG -10
#define SP_FLD_STORE_FAILED -11
+/* DB storage of Stored PROCEDUREs and FUNCTIONs */
+enum
+{
+ MYSQL_PROC_FIELD_DB = 0,
+ MYSQL_PROC_FIELD_NAME,
+ MYSQL_PROC_MYSQL_TYPE,
+ MYSQL_PROC_FIELD_SPECIFIC_NAME,
+ MYSQL_PROC_FIELD_LANGUAGE,
+ MYSQL_PROC_FIELD_ACCESS,
+ MYSQL_PROC_FIELD_DETERMINISTIC,
+ MYSQL_PROC_FIELD_SECURITY_TYPE,
+ MYSQL_PROC_FIELD_PARAM_LIST,
+ MYSQL_PROC_FIELD_RETURNS,
+ MYSQL_PROC_FIELD_BODY,
+ MYSQL_PROC_FIELD_DEFINER,
+ MYSQL_PROC_FIELD_CREATED,
+ MYSQL_PROC_FIELD_MODIFIED,
+ MYSQL_PROC_FIELD_SQL_MODE,
+ MYSQL_PROC_FIELD_COMMENT,
+ MYSQL_PROC_FIELD_CHARACTER_SET_CLIENT,
+ MYSQL_PROC_FIELD_COLLATION_CONNECTION,
+ MYSQL_PROC_FIELD_DB_COLLATION,
+ MYSQL_PROC_FIELD_BODY_UTF8,
+ MYSQL_PROC_FIELD_COUNT
+};
+
/* Drop all routines in database 'db' */
int
sp_drop_db_routines(THD *thd, char *db);
@@ -130,4 +156,10 @@ extern "C" uchar* sp_sroutine_key(const uchar *ptr, size_t *plen,
*/
TABLE *open_proc_table_for_read(THD *thd, Open_tables_backup *backup);
+sp_head *
+sp_load_for_information_schema(THD *thd, TABLE *proc_table, String *db,
+ String *name, ulong sql_mode, int type,
+ const char *returns, const char *params,
+ bool *free_sp_head);
+
#endif /* _SP_H_ */