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

Function bind_recursive_cte_placeholders

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

bind_and_formatFunction · 0.85

Tested by

no test coverage detected