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

Method IsNull

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

Source from the content-addressed store, hash-verified

496}
497
498bool CMysqlConnection::IsNull(int Col)
499{
500 Col -= 1;
501
502 MYSQL_BIND Bind;
503 my_bool IsNull;
504 mem_zero(&Bind, sizeof(Bind));
505 Bind.buffer_type = MYSQL_TYPE_NULL;
506 Bind.buffer = nullptr;
507 Bind.buffer_length = 0;
508 Bind.length = nullptr;
509 Bind.is_null = &IsNull;
510 Bind.is_unsigned = false;
511 Bind.error = nullptr;
512 if(mysql_stmt_fetch_column(m_pStmt.get(), &Bind, Col, 0))
513 {
514 StoreErrorStmt("fetch_column:null");
515 dbg_assert_failed("Error in IsNull(%d): error fetching column %s", Col + 1, m_aErrorDetail);
516 }
517 return IsNull;
518}
519
520float CMysqlConnection::GetFloat(int Col)
521{

Callers 4

LoadPlayerDataMethod · 0.45
MapInfoMethod · 0.45
LoadTeamMethod · 0.45
GetSavesMethod · 0.45

Calls 2

mem_zeroFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected