summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.h
diff options
context:
space:
mode:
authorpem@mysql.com <>2006-01-16 15:37:25 +0100
committerpem@mysql.com <>2006-01-16 15:37:25 +0100
commit559a243686d4ee21a535793a8991384796bc1edd (patch)
treeedb91858f12cf3e9bdd73845bf4b3a8695c550af /sql/sp_pcontext.h
parente5598d2fad42a4f2a720f399f99ed680febac409 (diff)
parenta1b2960a8abcaa6aa9696869f83435cd3121b47d (diff)
downloadmariadb-git-559a243686d4ee21a535793a8991384796bc1edd.tar.gz
Merge mysql.com:/extern/mysql/bk/mysql-5.0
into mysql.com:/extern/mysql/work/bug14498/mysql-5.0
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r--sql/sp_pcontext.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/sp_pcontext.h b/sql/sp_pcontext.h
index 6d803362d86..d1cd7b964c2 100644
--- a/sql/sp_pcontext.h
+++ b/sql/sp_pcontext.h
@@ -52,6 +52,15 @@ typedef struct sp_pvar
#define SP_LAB_BEGIN 2 // Label at BEGIN
#define SP_LAB_ITER 3 // Label at iteration control
+/*
+ An SQL/PSM label. Can refer to the identifier used with the
+ "label_name:" construct which may precede some SQL/PSM statements, or
+ to an implicit implementation-dependent identifier which the parser
+ inserts before a high-level flow control statement such as
+ IF/WHILE/REPEAT/LOOP, when such statement is rewritten into
+ a combination of low-level jump/jump_if instructions and labels.
+*/
+
typedef struct sp_label
{
char *name;