MCPcopy Create free account
hub / github.com/MariaDB/server / reset

Method reset

plugin/handler_socket/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 2

mysql_closeFunction · 0.85
fatal_abortFunction · 0.85

Tested by

no test coverage detected