()
| 193 | |
| 194 | #[test] |
| 195 | fn bind_array_elements() { |
| 196 | let result = bind_and_format( |
| 197 | "SELECT ARRAY[$1, $2, $3]", |
| 198 | &[ |
| 199 | ParamValue::Int64(1), |
| 200 | ParamValue::Int64(2), |
| 201 | ParamValue::Int64(3), |
| 202 | ], |
| 203 | ); |
| 204 | assert!( |
| 205 | !result.contains("$1"), |
| 206 | "array placeholder survived: {result}" |
| 207 | ); |
| 208 | assert!( |
| 209 | result.contains('1') && result.contains('2') && result.contains('3'), |
| 210 | "got: {result}" |
| 211 | ); |
| 212 | } |
| 213 | |
| 214 | #[test] |
| 215 | fn bind_any_op_rhs() { |
nothing calls this directly
no test coverage detected