()
| 535 | |
| 536 | #[test] |
| 537 | fn invalid() { |
| 538 | let tx = SchemaViewer(module_def()); |
| 539 | |
| 540 | for sql in [ |
| 541 | // Unqualified columns in a join |
| 542 | "select id, str from s join t", |
| 543 | // Wrong type for limit |
| 544 | "select * from t limit '5'", |
| 545 | // Unqualified name in join expression |
| 546 | "select t.* from t join s on t.u32 = s.u32 where bytes = 0xABCD", |
| 547 | ] { |
| 548 | let result = parse_and_type_sql(sql, &tx); |
| 549 | assert!(result.is_err()); |
| 550 | } |
| 551 | } |
| 552 | |
| 553 | /// Manually build the AST for a recursive query, |
| 554 | /// because we limit the length of the query to prevent stack overflow on parsing. |
nothing calls this directly
no test coverage detected
searching dependent graphs…