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

Function bind_cte_body_placeholders

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

Source from the content-addressed store, hash-verified

168
169 #[test]
170 fn bind_cte_body_placeholders() {
171 let result = bind_and_format(
172 "WITH x AS (SELECT $1 AS v) SELECT v FROM x",
173 &[ParamValue::Int64(42)],
174 );
175 assert!(
176 result.contains("SELECT 42"),
177 "CTE body placeholder not substituted: {result}"
178 );
179 assert!(!result.contains("$1"), "placeholder survived: {result}");
180 }
181
182 #[test]
183 fn bind_recursive_cte_placeholders() {

Callers

nothing calls this directly

Calls 1

bind_and_formatFunction · 0.85

Tested by

no test coverage detected