()
| 428 | |
| 429 | #[test] |
| 430 | fn supported() { |
| 431 | for sql in [ |
| 432 | "select a from t", |
| 433 | "select a from t where x = :sender", |
| 434 | "select count(*) as n from t", |
| 435 | "select count(*) as n from t join s on t.id = s.id where s.x = 1", |
| 436 | "insert into t values (1, 2)", |
| 437 | "delete from t", |
| 438 | "delete from t where a = 1", |
| 439 | "delete from t where x = :sender", |
| 440 | "update t set a = 1, b = 2", |
| 441 | "update t set a = 1, b = 2 where c = 3", |
| 442 | "update t set a = 1, b = 2 where x = :sender", |
| 443 | ] { |
| 444 | assert!(parse_sql(sql).is_ok()); |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | #[test] |
| 449 | fn signed_numeric_literals_are_supported_across_sql_api() { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…