(sql string, tokens []sqlSymType, nakedIntType *types.T)
| 59 | } |
| 60 | |
| 61 | func (l *lexer) init(sql string, tokens []sqlSymType, nakedIntType *types.T) { |
| 62 | l.in = sql |
| 63 | l.tokens = tokens |
| 64 | l.lastPos = -1 |
| 65 | l.stmt = nil |
| 66 | l.numPlaceholders = 0 |
| 67 | l.numAnnotations = 0 |
| 68 | l.lastError = nil |
| 69 | |
| 70 | l.nakedIntType = nakedIntType |
| 71 | } |
| 72 | |
| 73 | // cleanup is used to avoid holding on to memory unnecessarily (for the cases |
| 74 | // where we reuse a scanner). |
no outgoing calls
no test coverage detected