| 108 | } |
| 109 | |
| 110 | PhxSQLClientBase::PhxSQLClientBase(PhxSQLClientConfig * poConfig, PhxSQLClientDisasterStrategy * poDisasterStrategy, |
| 111 | const char *pcUser, const char *pcPasswd, const char *pcDB, uint32_t iClientFlag) { |
| 112 | InitLibrary(); |
| 113 | m_poMySQLProp = new MySQLProp_t(); |
| 114 | InitProperty(m_poMySQLProp); |
| 115 | |
| 116 | m_poDisasterStrategy = poDisasterStrategy; |
| 117 | m_poConfig = poConfig; |
| 118 | |
| 119 | strncpy(m_poMySQLProp->pcUser, pcUser, sizeof(m_poMySQLProp->pcUser)); |
| 120 | strncpy(m_poMySQLProp->pcPass, pcPasswd, sizeof(m_poMySQLProp->pcPass)); |
| 121 | strncpy(m_poMySQLProp->pcDB, pcDB, sizeof(m_poMySQLProp->pcDB)); |
| 122 | m_poMySQLProp->iClientFlag = iClientFlag; |
| 123 | } |
| 124 | |
| 125 | PhxSQLClientBase::~PhxSQLClientBase() { |
| 126 | CloseConnection(); |
nothing calls this directly
no outgoing calls
no test coverage detected