()
| 88 | |
| 89 | #[test] |
| 90 | fn test_aggregate_needs_wrapping() { |
| 91 | let conn = setup_test_db(); |
| 92 | |
| 93 | // Test 4: Aggregates on decimal columns SHOULD be wrapped |
| 94 | let sql = "SELECT SUM(price) FROM products"; |
| 95 | let result = rewrite_query(&conn, sql).unwrap(); |
| 96 | println!("Aggregate rewritten to: {result}"); |
| 97 | |
| 98 | // Aggregates should wrap the column in decimal_from_text |
| 99 | assert!(result.contains("decimal_from_text")); |
| 100 | } |
nothing calls this directly
no test coverage detected