MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / escape_expr

Function escape_expr

sqlite/src/comdb2build.c:4212–4222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4210}
4211
4212static void escape_expr(struct strbuf *out, const char *expr)
4213{
4214 while (*expr) {
4215 if (*expr == '"') {
4216 strbuf_append(out, "\\\"");
4217 } else {
4218 strbuf_appendf(out, "%c", *expr);
4219 }
4220 ++expr;
4221 }
4222}
4223
4224static int retrieve_check_constraint(Parse *pParse,
4225 struct comdb2_ddl_context *ctx,

Callers 2

retrieve_schemaFunction · 0.85
comdb2AddIndexIntFunction · 0.85

Calls 2

strbuf_appendFunction · 0.50
strbuf_appendfFunction · 0.50

Tested by

no test coverage detected