summaryrefslogtreecommitdiff
path: root/sql/sp_head.h
diff options
context:
space:
mode:
authorunknown <malff/marcsql@weblab.(none)>2007-03-07 11:25:20 -0700
committerunknown <malff/marcsql@weblab.(none)>2007-03-07 11:25:20 -0700
commitb841c9ebbd18daf02ae0a65c5521a6429ba77872 (patch)
treee736972aaaa382353efb10f4066980d7afd483b1 /sql/sp_head.h
parentbabe2aa421bdf199cd36e8f89ce821c78df7d27a (diff)
parenta6131b85c0a938c2ba951ca5bfd772ec94d76d06 (diff)
downloadmariadb-git-b841c9ebbd18daf02ae0a65c5521a6429ba77872.tar.gz
Merge weblab.(none):/home/marcsql/TREE/mysql-5.0-runtime
into weblab.(none):/home/marcsql/TREE/mysql-5.1-8407-cleanup sql/sp_head.cc: Auto merged sql/sp_head.h: Auto merged
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r--sql/sp_head.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index 46ad3dd96d8..1776d81b248 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -468,13 +468,15 @@ public:
thd Thread handle
nextp OUT index of the next instruction to execute. (For most
instructions this will be the instruction following this
- one).
-
- RETURN
- 0 on success,
- other if some error occured
+ one). Note that this parameter is undefined in case of
+ errors, use get_cont_dest() to find the continuation
+ instruction for CONTINUE error handlers.
+
+ RETURN
+ 0 on success,
+ other if some error occurred
*/
-
+
virtual int execute(THD *thd, uint *nextp) = 0;
/**
@@ -482,22 +484,17 @@ public:
Open and lock the tables used by this statement, as a pre-requisite
to execute the core logic of this instruction with
<code>exec_core()</code>.
- If this statement fails, the next instruction to execute is also returned.
- This is useful when a user defined SQL continue handler needs to be
- executed.
@param thd the current thread
@param tables the list of tables to open and lock
- @param nextp the continuation instruction, returned to the caller if this
- method fails.
@return zero on success, non zero on failure.
*/
- int exec_open_and_lock_tables(THD *thd, TABLE_LIST *tables, uint *nextp);
+ int exec_open_and_lock_tables(THD *thd, TABLE_LIST *tables);
/**
Get the continuation destination of this instruction.
- @param nextp the continuation destination (output)
+ @return the continuation destination
*/
- virtual void get_cont_dest(uint *nextp);
+ virtual uint get_cont_dest();
/*
Execute core function of instruction after all preparations (e.g.
@@ -763,7 +760,7 @@ public:
virtual void set_destination(uint old_dest, uint new_dest)
= 0;
- virtual void get_cont_dest(uint *nextp);
+ virtual uint get_cont_dest();
protected: