()
| 461 | |
| 462 | #[test] |
| 463 | fn invalid() { |
| 464 | for sql in [ |
| 465 | // Empty SELECT |
| 466 | "select from t", |
| 467 | // Empty FROM |
| 468 | "select a from where b = 1", |
| 469 | // Empty WHERE |
| 470 | "select a from t where", |
| 471 | // Empty GROUP BY |
| 472 | "select a, count(*) from t group by", |
| 473 | // Aggregate without alias |
| 474 | "select count(*) from t", |
| 475 | // Empty statement |
| 476 | "", |
| 477 | " ", |
| 478 | ] { |
| 479 | assert!(parse_sql(sql).is_err()); |
| 480 | } |
| 481 | } |
| 482 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…