MCPcopy Create free account
hub / github.com/ddnet/ddnet / BindInt

Method BindInt

src/engine/server/databases/mysql.cpp:376–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void CMysqlConnection::BindInt(int Idx, int Value)
377{
378 m_NewQuery = true;
379 Idx -= 1;
380 dbg_assert(0 <= Idx && Idx < (int)m_vStmtParameters.size(), "Error in BindInt: index out of bounds: %d", Idx);
381
382 m_vStmtParameterExtras[Idx].i = Value;
383 MYSQL_BIND *pParam = &m_vStmtParameters[Idx];
384 pParam->buffer_type = MYSQL_TYPE_LONG;
385 pParam->buffer = &m_vStmtParameterExtras[Idx].i;
386 pParam->buffer_length = sizeof(m_vStmtParameterExtras[Idx].i);
387 pParam->length = nullptr;
388 pParam->is_null = nullptr;
389 pParam->is_unsigned = false;
390 pParam->error = nullptr;
391}
392
393void CMysqlConnection::BindInt64(int Idx, int64_t Value)
394{

Callers 6

ShowTopMethod · 0.45
ShowTeamTop5Method · 0.45
ShowTimesMethod · 0.45
ShowTopPointsMethod · 0.45
RandomMapMethod · 0.45
RandomUnfinishedMapMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected