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

Method RowNumber

storage/connect/tabdos.cpp:1955–1967  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1953/* RowNumber: return the ordinal number of the current row. */
1954/***********************************************************************/
1955int TDBDOS::RowNumber(PGLOBAL g, bool)
1956 {
1957 if (To_Kindex) {
1958 /*******************************************************************/
1959 /* Don't know how to retrieve RowID from file address. */
1960 /*******************************************************************/
1961 snprintf(g->Message, sizeof(g->Message), MSG(NO_ROWID_FOR_AM),
1962 GetAmName(g, Txfp->GetAmType()));
1963 return 0;
1964 } else
1965 return Txfp->GetRowID();
1966
1967 } // end of RowNumber
1968
1969/***********************************************************************/
1970/* DOS Cardinality: returns table cardinality in number of rows. */

Callers 1

ReadColumnMethod · 0.45

Calls 3

GetAmNameFunction · 0.85
GetAmTypeMethod · 0.45
GetRowIDMethod · 0.45

Tested by

no test coverage detected