MCPcopy Create free account
hub / github.com/MariaDB/server / ReadColumn

Method ReadColumn

storage/connect/taboccur.cpp:541–564  ·  view source on GitHub ↗

/ ReadColumn: what this routine does is to access the columns of */ list, extract their value and convert it to buffer type. */ /

Source from the content-addressed store, hash-verified

539/* list, extract their value and convert it to buffer type. */
540/***********************************************************************/
541void OCCURCOL::ReadColumn(PGLOBAL g)
542{
543 PTDBOCCUR tdbp = (PTDBOCCUR)To_Tdb;
544 PCOL *col = tdbp->Col;
545
546 for (; I < tdbp->Mult; I++) {
547 col[I]->ReadColumn(g);
548
549 if (Nullable || !col[I]->GetValue()->IsZero())
550 break;
551
552 } // endfor I
553
554 if (I == tdbp->Mult) {
555 // No more values, go to next source row
556 tdbp->RowFlag = 2;
557 I = 0;
558 return;
559 } // endif I
560
561 // Set the OCCUR column value from the Ith source column value
562 Value->SetValue_pval(col[I++]->GetValue());
563 tdbp->RowFlag = 1;
564} // end of ReadColumn
565
566
567// ------------------------ RANKCOL functions ---------------------------

Callers 1

ReadDBMethod · 0.45

Calls 7

IsZeroMethod · 0.80
SetValue_pvalMethod · 0.80
SetValue_pszMethod · 0.80
GetValueMethod · 0.45
GetNameMethod · 0.45
ResetMethod · 0.45
SetNullMethod · 0.45

Tested by

no test coverage detected