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

Function recognized_connection_string

src/interfaces/libpq/fe-connect.c:5683–5687  ·  view source on GitHub ↗

* Recognized connection string either starts with a valid URI prefix or * contains a "=" in it. * * Must be consistent with parse_connection_string: anything for which this * returns true should at least look like it's parseable by that routine. * * XXX this is duplicated in psql/common.c */

Source from the content-addressed store, hash-verified

5681 * XXX this is duplicated in psql/common.c
5682 */
5683static bool
5684recognized_connection_string(const char *connstr)
5685{
5686 return uri_prefix_length(connstr) != 0 || strchr(connstr, '=') != NULL;
5687}
5688
5689/*
5690 * Subroutine for parse_connection_string

Callers 2

PQsetdbLoginFunction · 0.70
conninfo_array_parseFunction · 0.70

Calls 1

uri_prefix_lengthFunction · 0.70

Tested by

no test coverage detected