diff options
author | Chad MILLER <chad@mysql.com> | 2009-04-10 10:18:57 -0400 |
---|---|---|
committer | Chad MILLER <chad@mysql.com> | 2009-04-10 10:18:57 -0400 |
commit | ebd4f43e442473b980508a14b0bbb43ca138b3bd (patch) | |
tree | 70253e0b69b42f895704ede0847f56388999b264 /sql/sql_lex.h | |
parent | bb08984f07bd52690471cd9159192e74ab20ebb5 (diff) | |
parent | 8c828507e4f79ca3e2e12b6aeccc18a7a441fcf9 (diff) | |
download | mariadb-git-ebd4f43e442473b980508a14b0bbb43ca138b3bd.tar.gz |
Merge fix for bug 39559 and bugteam trunk.
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 172940cf9d7..62106a2500b 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -1160,6 +1160,18 @@ public: m_echo= echo; } + void save_in_comment_state() + { + m_echo_saved= m_echo; + in_comment_saved= in_comment; + } + + void restore_in_comment_state() + { + m_echo= m_echo_saved; + in_comment= in_comment_saved; + } + /** Skip binary from the input stream. @param n number of bytes to accept. @@ -1417,6 +1429,7 @@ private: /** Echo the parsed stream to the pre-processed buffer. */ bool m_echo; + bool m_echo_saved; /** Pre-processed buffer. */ char *m_cpp_buf; @@ -1479,6 +1492,7 @@ public: /** State of the lexical analyser for comments. */ enum_comment_state in_comment; + enum_comment_state in_comment_saved; /** Starting position of the TEXT_STRING or IDENT in the pre-processed |