summaryrefslogtreecommitdiff
path: root/sql/sp_head.h
diff options
context:
space:
mode:
authorunknown <lars/lthalmann@dl145k.mysql.com>2007-06-21 17:13:02 +0200
committerunknown <lars/lthalmann@dl145k.mysql.com>2007-06-21 17:13:02 +0200
commit63d7c4a8c837113be1d1f2b45e02c7cd0aeee4d8 (patch)
tree4cebbff86a038e8f7be63238c8a21a11e106bf20 /sql/sp_head.h
parent3e878beddb0c70e9a8204ce04dfcc92c135c1f39 (diff)
parent72253445131fa3033243a9b663f4d88af019c547 (diff)
downloadmariadb-git-63d7c4a8c837113be1d1f2b45e02c7cd0aeee4d8.tar.gz
Merge mysql.com:/nfsdisk1/lars/bk/mysql-5.1
into mysql.com:/nfsdisk1/lars/bk/mysql-5.1-new-rpl mysql-test/t/disabled.def: Auto merged mysql-test/t/ndb_index_ordered.test: Auto merged mysys/charset.c: Auto merged sql/field.cc: Auto merged sql/handler.cc: Auto merged sql/mysql_priv.h: Auto merged sql/sp_head.cc: Auto merged sql/sp_head.h: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_insert.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_view.cc: Auto merged
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r--sql/sp_head.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index 985d74393ff..50f6017ca0d 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -126,7 +126,7 @@ public:
int m_type;
uint m_flags; // Boolean attributes of a stored routine
- create_field m_return_field_def; /* This is used for FUNCTIONs only. */
+ Create_field m_return_field_def; /* This is used for FUNCTIONs only. */
const char *m_tmp_query; // Temporary pointer to sub query string
st_sp_chistics *m_chistics;
@@ -178,8 +178,11 @@ public:
// Pointers set during parsing
const char *m_param_begin;
const char *m_param_end;
+
+private:
const char *m_body_begin;
+public:
/*
Security context for stored routine which should be run under
definer privileges.
@@ -216,8 +219,10 @@ public:
destroy();
bool
- execute_trigger(THD *thd, const char *db, const char *table,
- GRANT_INFO *grant_onfo);
+ execute_trigger(THD *thd,
+ const LEX_STRING *db_name,
+ const LEX_STRING *table_name,
+ GRANT_INFO *grant_info);
bool
execute_function(THD *thd, Item **args, uint argcount, Field *return_fld);
@@ -290,11 +295,13 @@ public:
bool fill_field_definition(THD *thd, LEX *lex,
enum enum_field_types field_type,
- create_field *field_def);
+ Create_field *field_def);
void set_info(longlong created, longlong modified,
st_sp_chistics *chistics, ulong sql_mode);
+ void set_body_begin_ptr(Lex_input_stream *lip, const char *begin_ptr);
+
void set_definer(const char *definer, uint definerlen);
void set_definer(const LEX_STRING *user_name, const LEX_STRING *host_name);