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

Method InitColumn

storage/connect/tabpivot.cpp:850–863  ·  view source on GitHub ↗

/ FNCCOL initialization function. */ /

Source from the content-addressed store, hash-verified

848/* FNCCOL initialization function. */
849/***********************************************************************/
850bool FNCCOL::InitColumn(PGLOBAL g)
851{
852 // Must have its own value block
853 if (InitValue(g))
854 return TRUE;
855
856 // Make a value from the column name
857 Hval = AllocateValue(g, Name, TYPE_STRING);
858 Hval->SetPrec(1); // Case insensitive
859
860 Xcolp = ((PTDBPIVOT)To_Tdb)->Xcolp;
861 AddStatus(BUF_READ); // All is done here
862 return FALSE;
863} // end of InitColumn
864
865/***********************************************************************/
866/* CompareColumn: Compare column value with source column value. */

Callers 2

MakePivotColumnsMethod · 0.80
MakeViewColumnsMethod · 0.80

Calls 3

AllocateValueFunction · 0.85
AddStatusFunction · 0.85
SetPrecMethod · 0.45

Tested by

no test coverage detected