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

Function bind_null_param

nodedb-sql/src/params.rs:130–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129 #[test]
130 fn bind_null_param() {
131 let result = bind_and_format("SELECT * FROM users WHERE name = $1", &[ParamValue::Null]);
132 assert!(result.contains("name = NULL"), "got: {result}");
133 }
134
135 #[test]
136 fn bind_multiple_params() {

Callers

nothing calls this directly

Calls 1

bind_and_formatFunction · 0.85

Tested by

no test coverage detected