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

Function PQescapeStringConn

src/interfaces/libpq/fe-exec.c:3987–4006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3985}
3986
3987size_t
3988PQescapeStringConn(PGconn *conn,
3989 char *to, const char *from, size_t length,
3990 int *error)
3991{
3992 if (!conn)
3993 {
3994 /* force empty-string result */
3995 *to = '\0';
3996 if (error)
3997 *error = 1;
3998 return 0;
3999 }
4000
4001 resetPQExpBuffer(&conn->errorMessage);
4002
4003 return PQescapeStringInternal(conn, to, from, length, error,
4004 conn->client_encoding,
4005 conn->std_strings);
4006}
4007
4008size_t
4009PQescapeString(char *to, const char *from, size_t length)

Callers 7

appendStringLiteralConnFunction · 0.85
escape_string_connFunction · 0.85
do_lo_importFunction · 0.85
check_loadable_librariesFunction · 0.85
freeze_master_dataFunction · 0.85
add_to_exclude_listFunction · 0.85
BaseBackupFunction · 0.85

Calls 2

resetPQExpBufferFunction · 0.85
PQescapeStringInternalFunction · 0.85

Tested by 1

escape_string_connFunction · 0.68