(sql: string, i: number)
| 77 | } |
| 78 | |
| 79 | function scanSingleQuotedString(sql: string, i: number): SQLToken | null { |
| 80 | if (sql[i] !== "'") { return null; } |
| 81 | let j = i + 1; |
| 82 | while (j < sql.length) { |
| 83 | if (sql[j] === "'" && sql[j + 1] === "'") { j += 2; } |
| 84 | else if (sql[j] === "'") { j++; break; } |
| 85 | else { j++; } |
| 86 | } |
| 87 | return { type: TokenType.QuotedBlock, end: j }; |
| 88 | } |
| 89 | |
| 90 | function scanDoubleQuotedString(sql: string, i: number): SQLToken | null { |
| 91 | if (sql[i] !== '"') { return null; } |
no outgoing calls
no test coverage detected