MCPcopy Create free account
hub / github.com/MariaDB/server / fetch_command

Function fetch_command

sql/sql_parse.cc:1180–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178
1179#ifndef EMBEDDED_LIBRARY
1180static 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).

Callers 1

do_commandFunction · 0.85

Calls 1

vio_descriptionFunction · 0.85

Tested by

no test coverage detected