()
| 181 | |
| 182 | #[test] |
| 183 | fn bind_recursive_cte_placeholders() { |
| 184 | let result = bind_and_format( |
| 185 | "WITH RECURSIVE chain AS (SELECT $1 AS id UNION ALL SELECT chain.id + 1 FROM chain WHERE chain.id < $2) SELECT * FROM chain", |
| 186 | &[ParamValue::Int64(1), ParamValue::Int64(10)], |
| 187 | ); |
| 188 | assert!( |
| 189 | !result.contains("$1") && !result.contains("$2"), |
| 190 | "got: {result}" |
| 191 | ); |
| 192 | } |
| 193 | |
| 194 | #[test] |
| 195 | fn bind_array_elements() { |
nothing calls this directly
no test coverage detected