()
| 168 | |
| 169 | #[test] |
| 170 | fn bind_cte_body_placeholders() { |
| 171 | let result = bind_and_format( |
| 172 | "WITH x AS (SELECT $1 AS v) SELECT v FROM x", |
| 173 | &[ParamValue::Int64(42)], |
| 174 | ); |
| 175 | assert!( |
| 176 | result.contains("SELECT 42"), |
| 177 | "CTE body placeholder not substituted: {result}" |
| 178 | ); |
| 179 | assert!(!result.contains("$1"), "placeholder survived: {result}"); |
| 180 | } |
| 181 | |
| 182 | #[test] |
| 183 | fn bind_recursive_cte_placeholders() { |
nothing calls this directly
no test coverage detected