()
| 188 | |
| 189 | #[test] |
| 190 | fn null_param() { |
| 191 | let bound = bind_dsl( |
| 192 | "UPSERT INTO t (id, n) VALUES ($1, $2)", |
| 193 | &[ParamValue::Text("x".into()), ParamValue::Null], |
| 194 | ) |
| 195 | .unwrap(); |
| 196 | let s = bound.as_str(); |
| 197 | assert!(s.to_uppercase().contains("NULL"), "got: {s}"); |
| 198 | } |
| 199 | |
| 200 | #[test] |
| 201 | fn out_of_range_placeholder_errors() { |