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

Function UnsyncVariables

src/bin/psql/command.c:3712–3722  ·  view source on GitHub ↗

* UnsyncVariables * * Clear variables that should be not be set when there is no connection. */

Source from the content-addressed store, hash-verified

3710 * Clear variables that should be not be set when there is no connection.
3711 */
3712void
3713UnsyncVariables(void)
3714{
3715 SetVariable(pset.vars, "DBNAME", NULL);
3716 SetVariable(pset.vars, "USER", NULL);
3717 SetVariable(pset.vars, "HOST", NULL);
3718 SetVariable(pset.vars, "PORT", NULL);
3719 SetVariable(pset.vars, "ENCODING", NULL);
3720 SetVariable(pset.vars, "SERVER_VERSION_NAME", NULL);
3721 SetVariable(pset.vars, "SERVER_VERSION_NUM", NULL);
3722}
3723
3724
3725/*

Callers 2

CheckConnectionFunction · 0.85
do_connectFunction · 0.85

Calls 1

SetVariableFunction · 0.85

Tested by

no test coverage detected