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

Function main

mysys/test_charset.c:56–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56int main(int argc, char **argv) {
57 const char *the_set = MYSQL_CHARSET;
58 char *cs_list;
59 int argcnt = 1;
60 CHARSET_INFO *cs;
61
62 my_init();
63
64 if (argc > argcnt && argv[argcnt][0] == '-' && argv[argcnt][1] == '#')
65 DBUG_PUSH(argv[argcnt++]+2);
66
67 if (argc > argcnt)
68 the_set = argv[argcnt++];
69
70 if (argc > argcnt)
71 charsets_dir = argv[argcnt++];
72
73 if (!(cs= get_charset_by_name(the_set, MYF(MY_WME))))
74 return 1;
75
76 puts("CHARSET INFO:");
77 _print_csinfo(cs);
78 fflush(stdout);
79
80 return 0;
81}

Callers

nothing calls this directly

Calls 3

my_initFunction · 0.85
get_charset_by_nameFunction · 0.85
_print_csinfoFunction · 0.85

Tested by

no test coverage detected