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

Method MYSQLCOL

storage/connect/tabmysql.cpp:1232–1253  ·  view source on GitHub ↗

/ MYSQLCOL public constructor. */ /

Source from the content-addressed store, hash-verified

1230/* MYSQLCOL public constructor. */
1231/***********************************************************************/
1232MYSQLCOL::MYSQLCOL(PCOLDEF cdp, PTDB tdbp, PCOL cprec, int i, PCSZ am)
1233 : COLBLK(cdp, tdbp, i)
1234 {
1235 if (cprec) {
1236 Next = cprec->GetNext();
1237 cprec->SetNext(this);
1238 } else {
1239 Next = tdbp->GetColumns();
1240 tdbp->SetColumns(this);
1241 } // endif cprec
1242
1243 // Set additional MySQL access method information for column.
1244 Precision = Long = cdp->GetLong();
1245 Bind = NULL;
1246 To_Val = NULL;
1247 Slen = 0;
1248 Rank = -1; // Not known yet
1249
1250 if (trace(1))
1251 htrc(" making new %sCOL C%d %s at %p\n", am, Index, Name, this);
1252
1253 } // end of MYSQLCOL constructor
1254
1255/***********************************************************************/
1256/* MYSQLCOL public constructor. */

Callers

nothing calls this directly

Calls 5

MYSQLtoPLGFunction · 0.85
GetFormatTypeFunction · 0.85
htrcFunction · 0.70
GetNextMethod · 0.45
GetColumnsMethod · 0.45

Tested by

no test coverage detected