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

Method Ping

phxsqlclient/phxsqlclientbase.cpp:193–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193int PhxSQLClientBase::Ping() {
194 if (!m_poMySQLProp->bConnected) {
195 return phxsql::MYSQL_FAIL;
196 }
197
198 if (mysql_ping(&m_poMySQLProp->connection) != 0) {
199 CloseConnection();
200 return phxsql::MYSQL_FAIL;
201 }
202 return phxsql::OK;
203}
204
205int PhxSQLClientBase::Query(const char* szSqlString) {
206 return Query(szSqlString, false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected