(query: Query, tables: TableSchema[])
| 166 | } |
| 167 | |
| 168 | function validateSubquery(query: Query, tables: TableSchema[]) { |
| 169 | try { |
| 170 | assertNoBrokenTableRefs(query, tables) |
| 171 | assertNoBrokenColumnRefs(query, tables) |
| 172 | assertCompleteInsertValues(query, tables) |
| 173 | } catch (error) { |
| 174 | throw augmentFileValidationError(error, query) |
| 175 | } |
| 176 | |
| 177 | for (const subquery of query.subqueries) { |
| 178 | validateSubquery(subquery, tables) |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | function validateQueryInvocation(invocation: QueryInvocation, tables: TableSchema[]) { |
| 183 | if ( |
no test coverage detected