- if (strncmp (key, "Com_insert", 10) == 0)
- cmd_insert += val;
- else if (strncmp (key, "Com_select", 10) == 0)
- cmd_select += val;
- else if (strncmp (key, "Com_show", 8) == 0)
- cmd_show += val;
- else if (strncmp (key, "Com_update", 10) == 0)
- cmd_update += val;
- else if (strncmp (key, "Com_stmt_", 9) == 0)
- { /* do nothing */ }
- else
- cmd_other += val;
+ /* Ignore `prepared statements' */
+ if (strncmp (key, "Com_stmt_", 9) != 0)
+ commands_submit (key + 4, val);