ReadTarget reads a comma-separated list of target variables from the current position.
()
| 639 | // ReadTarget reads a comma-separated list of target variables from the current |
| 640 | // position. |
| 641 | func (l *lexer) ReadTarget() ([]plpgsqltree.Variable, error) { |
| 642 | startPos, endPos := l.lastPos+1, len(l.tokens) |
| 643 | target, targetEnd, err := l.readTarget(startPos, endPos) |
| 644 | l.lastPos = targetEnd - 1 |
| 645 | return target, err |
| 646 | } |
| 647 | |
| 648 | // readTarget reads a comma-separated list of target variables from the given |
| 649 | // start position to the given end position. It returns the target list and its |