MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / reset

Method reset

client/hstest.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48 }
49 void reset() {
50 if (db) {
51 mysql_close(db);
52 }
53 if ((db = mysql_init(0)) == 0) {
54 fatal_abort("failed to initialize mysql client");
55 }
56 }
57 operator MYSQL *() const { return db; }
58 private:
59 MYSQL *db;

Callers 6

test_9Method · 0.45
test_10Method · 0.45
test_11Method · 0.45
test_12Method · 0.45
test_21Method · 0.45
test_22Method · 0.45

Calls 1

fatal_abortFunction · 0.85

Tested by

no test coverage detected