#ifndef __SQL_PARSER_H #define __SQL_PARSER_H class ParserCallbackHandler { public: virtual void value_callback(const char* str, long len, bool end_value)=0; virtual void row_end_callback()=0; }; // Return: -1 if no error. Otherwise, the byte position in the string where // a parse error occurred. extern long parse_insert_query(const char* sql, long len, ParserCallbackHandler& ch); #endif // __SQL_PARSER_H