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

Method comStmtPrepare

src/Server/MySQLHandler.cpp:580–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580void MySQLHandler::comStmtPrepare(DB::ReadBuffer & payload)
581{
582 String statement;
583 readStringUntilEOF(statement, payload);
584
585 auto statement_id_opt = emplacePreparedStatement(std::move(statement));
586 if (statement_id_opt.has_value())
587 packet_endpoint->sendPacket(PreparedStatementResponseOK(statement_id_opt.value(), 0, 0, 0));
588 else
589 packet_endpoint->sendPacket(ERRPacket());
590}
591
592void MySQLHandler::comStmtExecute(ReadBuffer & payload)
593{

Callers

nothing calls this directly

Calls 5

readStringUntilEOFFunction · 0.85
ERRPacketClass · 0.85
sendPacketMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected