MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / null_param

Function null_param

nodedb-sql/src/dsl_bind.rs:190–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

bind_dslFunction · 0.85
as_strMethod · 0.45

Tested by

no test coverage detected