Loading sql/sp_pcontext.cc +1 −2 Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ sp_pcontext::diff_cursors(sp_pcontext *ctx) sp_pvar_t * sp_pcontext::find_pvar(LEX_STRING *name, my_bool scoped) { uint i= m_pboundary; uint i= m_pvar.elements - m_pboundary; while (i--) { Loading Loading @@ -186,7 +186,6 @@ sp_pcontext::push_pvar(LEX_STRING *name, enum enum_field_types type, p->offset= current_pvars(); p->dflt= NULL; insert_dynamic(&m_pvar, (gptr)&p); m_pboundary= m_pvar.elements; } } Loading sql/sp_pcontext.h +9 −8 Original line number Diff line number Diff line Loading @@ -164,7 +164,6 @@ class sp_pcontext : public Sql_alloc { while (num--) pop_dynamic(&m_pvar); m_pboundary= m_pvar.elements; } // Find by name Loading @@ -184,12 +183,14 @@ class sp_pcontext : public Sql_alloc return p; } // Set the current scope boundary (for default values) // The argument is the number of variables to skip. /* 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= m_pvar.elements-n; m_pboundary= n; } // Loading Loading @@ -297,10 +298,10 @@ class sp_pcontext : public Sql_alloc uint m_poffset; // Variable offset for this context uint m_coffset; // Cursor offset for this context /* Boundary for finding variables in this in this context. This is normally the same as m_pvar.elements, but differs during parsing of DECLARE ... DEFAULT, to get the scope right for DEFAULT values. 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; Loading sql/sql_yacc.yy +5 −5 File changed.Contains only whitespace changes. Show changes Loading
sql/sp_pcontext.cc +1 −2 Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ sp_pcontext::diff_cursors(sp_pcontext *ctx) sp_pvar_t * sp_pcontext::find_pvar(LEX_STRING *name, my_bool scoped) { uint i= m_pboundary; uint i= m_pvar.elements - m_pboundary; while (i--) { Loading Loading @@ -186,7 +186,6 @@ sp_pcontext::push_pvar(LEX_STRING *name, enum enum_field_types type, p->offset= current_pvars(); p->dflt= NULL; insert_dynamic(&m_pvar, (gptr)&p); m_pboundary= m_pvar.elements; } } Loading
sql/sp_pcontext.h +9 −8 Original line number Diff line number Diff line Loading @@ -164,7 +164,6 @@ class sp_pcontext : public Sql_alloc { while (num--) pop_dynamic(&m_pvar); m_pboundary= m_pvar.elements; } // Find by name Loading @@ -184,12 +183,14 @@ class sp_pcontext : public Sql_alloc return p; } // Set the current scope boundary (for default values) // The argument is the number of variables to skip. /* 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= m_pvar.elements-n; m_pboundary= n; } // Loading Loading @@ -297,10 +298,10 @@ class sp_pcontext : public Sql_alloc uint m_poffset; // Variable offset for this context uint m_coffset; // Cursor offset for this context /* Boundary for finding variables in this in this context. This is normally the same as m_pvar.elements, but differs during parsing of DECLARE ... DEFAULT, to get the scope right for DEFAULT values. 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; Loading