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

Method MGOCOL

storage/connect/tabcmg.cpp:397–416  ·  view source on GitHub ↗

/ MGOCOL public constructor. */ /

Source from the content-addressed store, hash-verified

395/* MGOCOL public constructor. */
396/***********************************************************************/
397MGOCOL::MGOCOL(PGLOBAL g, PCOLDEF cdp, PTDB tdbp, PCOL cprec, int i)
398 : EXTCOL(cdp, tdbp, cprec, i, "MGO")
399{
400 Tmgp = (PTDBCMG)(tdbp->GetOrig() ? tdbp->GetOrig() : tdbp);
401 Sgfy = Stringified(Tmgp->Strfy, Name);
402
403 if ((Jpath = cdp->GetFmt())) {
404 int n = strlen(Jpath) - 1;
405
406 if (Jpath[n] == '*') {
407 Jpath = PlugDup(g, cdp->GetFmt());
408 if (Jpath[n - 1] == '.') n--;
409 Jpath[n] = 0;
410 Sgfy = true;
411 } // endif Jpath
412
413 } else
414 Jpath = cdp->GetName();
415
416} // end of MGOCOL constructor
417
418/***********************************************************************/
419/* MGOCOL constructor used for copying columns. */

Callers

nothing calls this directly

Calls 3

StringifiedFunction · 0.85
PlugDupFunction · 0.85
GetNameMethod · 0.45

Tested by

no test coverage detected