|
|
|
|
@ -1538,7 +1538,11 @@ void admin_session_handler(MySQL_Session *sess, ProxySQL_Admin *pa, PtrSize_t *p
|
|
|
|
|
goto __run_query;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (query_no_space_length==strlen("SHOW DATABASES") && !strncasecmp("SHOW DATABASES",query_no_space, query_no_space_length)) {
|
|
|
|
|
if (
|
|
|
|
|
(query_no_space_length==strlen("SHOW DATABASES") && !strncasecmp("SHOW DATABASES",query_no_space, query_no_space_length))
|
|
|
|
|
||
|
|
|
|
|
(query_no_space_length==strlen("SHOW SCHEMAS") && !strncasecmp("SHOW SCHEMAS",query_no_space, query_no_space_length))
|
|
|
|
|
) {
|
|
|
|
|
l_free(query_length,query);
|
|
|
|
|
query=l_strdup("PRAGMA DATABASE_LIST");
|
|
|
|
|
query_length=strlen(query)+1;
|
|
|
|
|
|