()
| 49 | |
| 50 | #[test] |
| 51 | fn test_simple_column_selection() { |
| 52 | let conn = setup_test_db(); |
| 53 | |
| 54 | // Test 1: Simple column selection should NOT be wrapped |
| 55 | let sql = "SELECT price FROM products"; |
| 56 | let result = rewrite_query(&conn, sql).unwrap(); |
| 57 | println!("Simple SELECT rewritten to: {result}"); |
| 58 | |
| 59 | // The simple column reference should NOT be wrapped in decimal_from_text |
| 60 | assert_eq!(result, "SELECT price FROM products"); |
| 61 | } |
| 62 | |
| 63 | #[test] |
| 64 | fn test_arithmetic_needs_wrapping() { |
nothing calls this directly
no test coverage detected