MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / comStmtExecute

Method comStmtExecute

src/Server/MySQLHandler.cpp:592–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592void MySQLHandler::comStmtExecute(ReadBuffer & payload)
593{
594 uint32_t statement_id = 0;
595 payload.readStrict(reinterpret_cast<char *>(&statement_id), 4);
596
597 auto statement_opt = getPreparedStatement(statement_id);
598 if (statement_opt.has_value())
599 MySQLHandler::comQuery(statement_opt.value(), true);
600 else
601 packet_endpoint->sendPacket(ERRPacket());
602};
603
604void MySQLHandler::comStmtClose(ReadBuffer & payload)
605{

Callers

nothing calls this directly

Calls 4

ERRPacketClass · 0.85
sendPacketMethod · 0.80
readStrictMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected