diff options
Diffstat (limited to 'sql/gstream.h')
-rw-r--r-- | sql/gstream.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/gstream.h b/sql/gstream.h index 1ef90ad5bf0..a1850e9a333 100644 --- a/sql/gstream.h +++ b/sql/gstream.h @@ -57,6 +57,14 @@ public: m_cur++; return 0; } + /* Returns the next notempty character. */ + char next_symbol() + { + skip_space(); + if (m_cur >= m_limit) + return 0; /* EOL meet. */ + return *m_cur; + } void set_error_msg(const char *msg); // caller should free this pointer |