diff options
author | unknown <pem@mysql.com> | 2005-12-02 15:04:50 +0100 |
---|---|---|
committer | unknown <pem@mysql.com> | 2005-12-02 15:04:50 +0100 |
commit | 110b887c4e6bbe27577c1ade5dfbc9479957bf20 (patch) | |
tree | df11e0fd1fcfdb791220357e68a8ed1a993af8c2 /sql/sp_pcontext.h | |
parent | 858eef452fd1c32bbbf672720043ddcedf6095ce (diff) | |
parent | a9086bc75cbd676eb065ca660edab222df0b097e (diff) | |
download | mariadb-git-110b887c4e6bbe27577c1ade5dfbc9479957bf20.tar.gz |
Merge mysql.com:/usr/local/bk/mysql-5.0
into mysql.com:/usr/home/pem/bug14376/mysql-5.0
sql/sp_pcontext.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
mysql-test/r/sp.result:
SCCS merged
mysql-test/t/sp.test:
SCCS merged
sql/sp_pcontext.h:
SCCS merged
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r-- | sql/sp_pcontext.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/sp_pcontext.h b/sql/sp_pcontext.h index b8dd1742f7e..5c5890f82cd 100644 --- a/sql/sp_pcontext.h +++ b/sql/sp_pcontext.h @@ -174,6 +174,16 @@ class sp_pcontext : public Sql_alloc sp_pvar_t * find_pvar(uint offset); + /* + Set the current scope boundary (for default values) + The argument is the number of variables to skip. + */ + inline void + declare_var_boundary(uint n) + { + m_pboundary= n; + } + // // Labels // @@ -282,6 +292,13 @@ private: uint m_poffset; // Variable offset for this context uint m_coffset; // Cursor offset for this context + /* + Boundary for finding variables in this context. This is the number + of variables currently "invisible" to default clauses. + This is normally 0, but will be larger during parsing of + DECLARE ... DEFAULT, to get the scope right for DEFAULT values. + */ + uint m_pboundary; DYNAMIC_ARRAY m_pvar; // Parameters/variables DYNAMIC_ARRAY m_cond; // Conditions |