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

Method comStmtPrepare

src/Server/MySQLHandler.cpp:597–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void MySQLHandler::comStmtPrepare(DB::ReadBuffer & payload)
598{
599 String statement;
600 readStringUntilEOF(statement, payload);
601
602 auto statement_id_opt = emplacePreparedStatement(std::move(statement));
603 if (statement_id_opt.has_value())
604 packet_endpoint->sendPacket(PreparedStatementResponseOK(statement_id_opt.value(), 0, 0, 0), true);
605 else
606 packet_endpoint->sendPacket(ERRPacket(), true);
607}
608
609void MySQLHandler::comStmtExecute(ReadBuffer & payload)
610{

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected