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

Function standard_strings

src/bin/psql/common.c:2178–2192  ·  view source on GitHub ↗

* Test if the current session uses standard string literals. */

Source from the content-addressed store, hash-verified

2176 * Test if the current session uses standard string literals.
2177 */
2178bool
2179standard_strings(void)
2180{
2181 const char *val;
2182
2183 if (!pset.db)
2184 return false;
2185
2186 val = PQparameterStatus(pset.db, "standard_conforming_strings");
2187
2188 if (val && strcmp(val, "on") == 0)
2189 return true;
2190
2191 return false;
2192}
2193
2194
2195/*

Callers 4

mainFunction · 0.85
parse_slash_copyFunction · 0.85
get_create_object_cmdFunction · 0.85
MainLoopFunction · 0.85

Calls 1

PQparameterStatusFunction · 0.85

Tested by

no test coverage detected