(sql string, tokens []sqlSymType, nakedIntType *types.T)
| 46 | } |
| 47 | |
| 48 | func (l *lexer) init(sql string, tokens []sqlSymType, nakedIntType *types.T) { |
| 49 | l.in = sql |
| 50 | l.tokens = tokens |
| 51 | l.lastPos = -1 |
| 52 | l.stmt = nil |
| 53 | l.numPlaceholders = 0 |
| 54 | l.numAnnotations = 0 |
| 55 | l.lastError = nil |
| 56 | |
| 57 | l.nakedIntType = nakedIntType |
| 58 | } |
| 59 | |
| 60 | // cleanup is used to avoid holding on to memory unnecessarily (for the cases |
| 61 | // where we reuse a scanner). |
no outgoing calls