( terminator1 int, terminators ...int, )
| 428 | } |
| 429 | |
| 430 | func (l *lexer) ReadSqlStatement( |
| 431 | terminator1 int, terminators ...int, |
| 432 | ) (sqlStr string, terminatorMet int, err error) { |
| 433 | var startPos, endPos int |
| 434 | startPos, endPos, terminatorMet, err = l.readSQLConstruct( |
| 435 | false /* isExpr */, false /* allowEmpty */, terminator1, terminators..., |
| 436 | ) |
| 437 | return l.getStr(startPos, endPos), terminatorMet, err |
| 438 | } |
| 439 | |
| 440 | // findFirstOccurrence searches from the current position for occurrences of the |
| 441 | // supplied tokens, returning the first one found. The cursor is not advanced |
no test coverage detected