Fixed the problem which the query parser has stack overflow error at loading a long query string.
Merge branch 'fix_stack_overflow'