(session: Session, query: string, filename: string)
| 237 | } |
| 238 | |
| 239 | export function validateQueryString(session: Session, query: string, filename: string) { |
| 240 | if (query?.trim().slice(-1) === ";") { |
| 241 | session.compileError( |
| 242 | new Error( |
| 243 | "Semi-colons are not allowed at the end of SQL statements." |
| 244 | // This can break the statement because of appended adapter specific SQL. |
| 245 | ), |
| 246 | filename |
| 247 | ); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | export function validateNoMixedCompilationMode( |
| 252 | session: Session, |
no test coverage detected