()
| 132 | |
| 133 | #[test] |
| 134 | fn test_implicit_cast_in_where_clause() { |
| 135 | let conn = setup_test_db(); |
| 136 | |
| 137 | // Test complex WHERE with implicit casts |
| 138 | let sql = "SELECT * FROM products WHERE price > 50 AND quantity * price > 1000"; |
| 139 | let result = rewrite_query(&conn, sql).unwrap(); |
| 140 | |
| 141 | // Should handle both comparisons with proper casts |
| 142 | assert!(result.contains("decimal_gt")); |
| 143 | assert!(result.contains("decimal_mul")); |
| 144 | assert!(result.contains("decimal_from_text")); |
| 145 | } |
| 146 | |
| 147 | #[test] |
| 148 | fn test_implicit_cast_insert_values() { |
nothing calls this directly
no test coverage detected