MCPcopy Create free account
hub / github.com/Tencent/phxsql / CloseConnection

Method CloseConnection

phxsqlclient/phxsqlclientbase.cpp:101–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void PhxSQLClientBase::CloseConnection() {
102 if (m_poMySQLProp->bConnected) {
103 m_poMySQLProp->bConnected = false;
104 m_poMySQLProp->tEndPoint.m_iPort = 0;
105 m_poMySQLProp->tEndPoint.m_sMySQLIP = "";
106 mysql_close(&m_poMySQLProp->connection);
107 }
108}
109
110PhxSQLClientBase::PhxSQLClientBase(PhxSQLClientConfig * poConfig, PhxSQLClientDisasterStrategy * poDisasterStrategy,
111 const char *pcUser, const char *pcPasswd, const char *pcDB, uint32_t iClientFlag) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected