MXS-1449 Firewall: Allow 'USE <db>'

When the database firewall filter is used in white-list mode,
'USE <db>' should be allowed. When connecting, it is always
possible to specify the database anyway so restricting
'USE <db>' serves no purpose.
This commit is contained in:
Johan Wikman
2017-09-27 12:45:54 +03:00
parent c1a7008479
commit 23fb0bf928
2 changed files with 6 additions and 4 deletions

View File

@ -2310,6 +2310,7 @@ static bool command_is_mandatory(const GWBUF *buffer)
{
case MYSQL_COM_CHANGE_USER:
case MYSQL_COM_FIELD_LIST:
case MYSQL_COM_INIT_DB:
case MYSQL_COM_PING:
case MYSQL_COM_PROCESS_INFO:
case MYSQL_COM_PROCESS_KILL: