()
| 5402 | |
| 5403 | #[test] |
| 5404 | fn test_call_valid_without_yield() { |
| 5405 | // Sanity test: CALL without YIELD should work |
| 5406 | let query = r#"CALL system.list_functions();"#; |
| 5407 | |
| 5408 | let result = parse_query(query); |
| 5409 | assert!(result.is_ok(), "Valid CALL without YIELD should parse"); |
| 5410 | |
| 5411 | let doc = result.unwrap(); |
| 5412 | if let Statement::Call(ref call_stmt) = doc.statement { |
| 5413 | assert!( |
| 5414 | call_stmt.yield_clause.is_none(), |
| 5415 | "YIELD should not be present" |
| 5416 | ); |
| 5417 | assert!( |
| 5418 | call_stmt.where_clause.is_none(), |
| 5419 | "WHERE should not be present" |
| 5420 | ); |
| 5421 | } else { |
| 5422 | panic!("Expected CallStatement"); |
| 5423 | } |
| 5424 | } |
| 5425 | |
| 5426 | // ======================================================================== |
| 5427 | // Pattern and Complex Query Parser Tests |
nothing calls this directly
no test coverage detected