()
| 146 | |
| 147 | #[test] |
| 148 | fn test_implicit_cast_insert_values() { |
| 149 | let conn = setup_test_db(); |
| 150 | |
| 151 | // Test: INSERT with string values for numeric columns |
| 152 | let sql = "INSERT INTO orders (product_id, amount, discount_pct) VALUES (1, '99.99', '0.15')"; |
| 153 | let result = rewrite_query(&conn, sql).unwrap(); |
| 154 | |
| 155 | // For now, INSERT handling might not apply the rewriter |
| 156 | // This test documents expected behavior |
| 157 | assert!(result.contains("'99.99'")); |
| 158 | assert!(result.contains("'0.15'")); |
| 159 | } |
| 160 | |
| 161 | #[test] |
| 162 | fn test_implicit_cast_update_assignment() { |
nothing calls this directly
no test coverage detected