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

Method InitProperty

phxsqlclient/phxsqlclientbase.cpp:84–95  ·  view source on GitHub ↗

///////////////////////////////////

Source from the content-addressed store, hash-verified

82
83////////////////////////////////////////
84void PhxSQLClientBase::InitProperty(MySQLProp_t * poProperty) {
85 poProperty->tEndPoint.m_iPort = 0;
86
87 memset(poProperty->pcUser, 0, sizeof(poProperty->pcUser));
88 memset(poProperty->pcPass, 0, sizeof(poProperty->pcPass));
89 memset(poProperty->pcDB, 0, sizeof(poProperty->pcDB));
90 memset(poProperty->pcNULL, 0, sizeof(poProperty->pcNULL));
91 poProperty->iClientFlag = 0;
92
93 mysql_init(&m_poMySQLProp->connection);
94 poProperty->bConnected = false;
95}
96
97const MySQLEndPoint_t & PhxSQLClientBase::GetConnectEndPoint() {
98 return m_poMySQLProp->tEndPoint;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected