()
| 75 | |
| 76 | #[test] |
| 77 | fn test_comparison_needs_wrapping() { |
| 78 | let conn = setup_test_db(); |
| 79 | |
| 80 | // Test 3: Comparisons in WHERE clause SHOULD be wrapped |
| 81 | let sql = "SELECT * FROM products WHERE price > 100"; |
| 82 | let result = rewrite_query(&conn, sql).unwrap(); |
| 83 | println!("WHERE clause rewritten to: {result}"); |
| 84 | |
| 85 | // Comparisons should use decimal functions |
| 86 | assert!(result.contains("decimal_gt")); |
| 87 | } |
| 88 | |
| 89 | #[test] |
| 90 | fn test_aggregate_needs_wrapping() { |
nothing calls this directly
no test coverage detected