MCPcopy Create free account
hub / github.com/apache/cloudberry / escape_quotes

Function escape_quotes

src/fe_utils/recovery_gen.c:167–178  ·  view source on GitHub ↗

* Escape a string so that it can be used as a value in a key-value pair * a configuration file. */

Source from the content-addressed store, hash-verified

165 * a configuration file.
166 */
167static char *
168escape_quotes(const char *src)
169{
170 char *result = escape_single_quotes_ascii(src);
171
172 if (!result)
173 {
174 pg_log_error("out of memory");
175 exit(1);
176 }
177 return result;
178}

Callers 1

GenerateRecoveryConfigFunction · 0.70

Calls 1

Tested by

no test coverage detected