MXS-1275: Inherit TrxBoundaryParser from CustomParser

This commit is contained in:
Johan Wikman
2017-05-31 13:17:42 +03:00
parent 9386143437
commit 1c6c19d6ae
3 changed files with 43 additions and 48 deletions

View File

@ -374,9 +374,15 @@ private:
// the identifier and if it is followed by a "=" we consume the value.
{
char c;
if (consume_id() && peek_next_char(&c) && (c == '='))
if (consume_id())
{
consume_value();
bypass_whitespace();
if (peek_current_char(&c) && (c == '='))
{
++m_pI;
consume_value();
}
}
else
{
@ -396,7 +402,9 @@ private:
if (rv != ERROR)
{
if (peek_next_char(&c))
bypass_whitespace();
if (peek_current_char(&c))
{
if (c == ',')
{
@ -470,7 +478,9 @@ private:
if (!is_error(rv))
{
if (peek_next_char(&c) && (c == ','))
bypass_whitespace();
if (peek_current_char(&c) && (c == ','))
{
++m_pI;
}