diff options
author | Marc Alff <marc.alff@sun.com> | 2008-07-07 10:00:08 -0600 |
---|---|---|
committer | Marc Alff <marc.alff@sun.com> | 2008-07-07 10:00:08 -0600 |
commit | c7724872d85cebf07df3380757cf7259f9116682 (patch) | |
tree | 373c5fa1c21bed1d12376b834674b7bb3f0463aa /sql/sp_head.h | |
parent | 5647bce3668b46c5c74349520cefb2a791125e95 (diff) | |
download | mariadb-git-c7724872d85cebf07df3380757cf7259f9116682.tar.gz |
Bug#26030 (Parsing fails for stored routine w/multi-statement execution
enabled)
Before this fix, the lexer and parser would treat the ';' character as a
different token (either ';' or END_OF_INPUT), based on convoluted logic,
which failed in simple cases where a stored procedure is implemented as a
single statement, and used in a multi query.
With this fix:
- the character ';' is always parsed as a ';' token in the lexer,
- parsing multi queries is implemented in the parser, in the 'query:' rules,
- the value of thd->client_capabilities, which is the capabilities
negotiated between the client and the server during bootstrap,
is immutable and not arbitrarily modified during parsing (which was the
root cause of the bug)
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r-- | sql/sp_head.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h index 11ff7160c03..91f465a4e2a 100644 --- a/sql/sp_head.h +++ b/sql/sp_head.h @@ -117,7 +117,6 @@ public: create_field m_return_field_def; /* This is used for FUNCTIONs only. */ const char *m_tmp_query; // Temporary pointer to sub query string - uint m_old_cmq; // Old CLIENT_MULTI_QUERIES value st_sp_chistics *m_chistics; ulong m_sql_mode; // For SHOW CREATE and execution LEX_STRING m_qname; // db.name |