MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / ConnectionOptionsFree

Function ConnectionOptionsFree

sqladvisor/main.cc:125–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void ConnectionOptionsFree(ConnectionOptions *options) {
126 if (options == NULL) {
127 return;
128 }
129 if (options->configfile != NULL) {
130 g_free(options->configfile);
131 }
132 if (options->username != NULL) {
133 g_free(options->username);
134 }
135 if (options->password != NULL) {
136 g_free(options->password);
137 }
138 if (options->host != NULL) {
139 g_free(options->host);
140 }
141 if (options->dbname != NULL) {
142 g_free(options->dbname);
143 }
144 g_strfreev(options->query);
145}
146
147void mysql_sql_parse_join(TABLE_LIST *join_table) {
148 List_iterator<TABLE_LIST> li_join_list(join_table->nested_join->join_list);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected