()
| 103 | |
| 104 | #[test] |
| 105 | fn test_implicit_cast_integer_plus_decimal() { |
| 106 | let conn = setup_test_db(); |
| 107 | |
| 108 | // Test: integer + decimal -> decimal |
| 109 | let sql = "SELECT quantity + price FROM products"; |
| 110 | let result = rewrite_query(&conn, sql).unwrap(); |
| 111 | |
| 112 | // Should promote integer to decimal |
| 113 | assert!(result.contains("decimal_add")); |
| 114 | assert!(result.contains("decimal_from_text")); |
| 115 | } |
| 116 | |
| 117 | #[test] |
| 118 | fn test_implicit_cast_function_argument() { |
nothing calls this directly
no test coverage detected