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

Method RowNumber

storage/connect/tabfix.cpp:257–276  ·  view source on GitHub ↗

/ RowNumber: return the ordinal number of the current row. */ /

Source from the content-addressed store, hash-verified

255/* RowNumber: return the ordinal number of the current row. */
256/***********************************************************************/
257int TDBFIX::RowNumber(PGLOBAL g, bool b)
258 {
259 if (Txfp->GetAmType() == TYPE_AM_DBF) {
260 if (!b && To_Kindex) {
261 /*****************************************************************/
262 /* Don't know how to retrieve Rows from DBF file address */
263 /* because of eventual deleted lines still in the file. */
264 /*****************************************************************/
265 snprintf(g->Message, sizeof(g->Message), MSG(NO_ROWID_FOR_AM),
266 GetAmName(g, Txfp->GetAmType()));
267 return 0;
268 } // endif To_Kindex
269
270 if (!b)
271 return Txfp->GetRows();
272
273 } // endif DBF
274
275 return Txfp->GetRowID();
276 } // end of RowNumber
277
278/***********************************************************************/
279/* FIX tables don't use temporary files except if specified as do it. */

Callers 1

ReadColumnMethod · 0.45

Calls 3

GetAmNameFunction · 0.85
GetAmTypeMethod · 0.45
GetRowIDMethod · 0.45

Tested by

no test coverage detected