(statement string, caretLine int, caretOffset int, tricky bool)
| 500 | } |
| 501 | |
| 502 | func computeSQLAndByteOffset(statement string, caretLine int, caretOffset int, tricky bool) (string, int) { |
| 503 | sql, newLine, newOffset := skipHeadingSQLs(statement, caretLine, caretOffset) |
| 504 | if tricky { |
| 505 | sql, newLine, newOffset = skipHeadingSQLWithoutSemicolon(sql, newLine, newOffset) |
| 506 | } |
| 507 | return sql, lineColumnToByteOffset(sql, newLine, newOffset) |
| 508 | } |
| 509 | |
| 510 | func lineColumnToByteOffset(sql string, line, column int) int { |
| 511 | currentLine := 1 |
no test coverage detected