peekForExecute checks whether the next token is EXECUTE, used to identify dynamic SQL statements.
()
| 410 | // peekForExecute checks whether the next token is EXECUTE, used to identify |
| 411 | // dynamic SQL statements. |
| 412 | func (l *lexer) peekForExecute() bool { |
| 413 | if l.parser.Lookahead() != -1 { |
| 414 | // Push back the lookahead token so that it can be included. |
| 415 | l.PushBack(1) |
| 416 | } |
| 417 | return l.Peek().id == EXECUTE |
| 418 | } |
| 419 | |
| 420 | func (l *lexer) ReadSqlExpr( |
| 421 | terminator1 int, terminators ...int, |