| 1178 | |
| 1179 | #ifndef EMBEDDED_LIBRARY |
| 1180 | static enum enum_server_command fetch_command(THD *thd, char *packet) |
| 1181 | { |
| 1182 | enum enum_server_command |
| 1183 | command= (enum enum_server_command) (uchar) packet[0]; |
| 1184 | DBUG_ENTER("fetch_command"); |
| 1185 | |
| 1186 | if (command >= COM_END || |
| 1187 | (command >= COM_MDB_GAP_BEG && command <= COM_MDB_GAP_END)) |
| 1188 | command= COM_END; // Wrong command |
| 1189 | |
| 1190 | DBUG_PRINT("info",("Command on %s = %d (%s)", |
| 1191 | vio_description(thd->net.vio), command, |
| 1192 | command_name[command].str)); |
| 1193 | DBUG_RETURN(command); |
| 1194 | } |
| 1195 | |
| 1196 | /** |
| 1197 | Read one command from connection and execute it (query or simple command). |
no test coverage detected