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

Method ReadDB

storage/connect/tabmysql.cpp:1132–1153  ·  view source on GitHub ↗

/ Data Base read routine for MYSQL access method. */ /

Source from the content-addressed store, hash-verified

1130/* Data Base read routine for MYSQL access method. */
1131/***********************************************************************/
1132int TDBMYSQL::ReadDB(PGLOBAL g)
1133 {
1134 int rc;
1135
1136 if (trace(2))
1137 htrc("MySQL ReadDB: R%d Mode=%d\n", GetTdb_No(), Mode);
1138
1139 if (Mode == MODE_UPDATE || Mode == MODE_DELETE)
1140 return SendCommand(g);
1141
1142 /*********************************************************************/
1143 /* Now start the reading process. */
1144 /* Here is the place to fetch the line. */
1145 /*********************************************************************/
1146 N++;
1147 Fetched = ((rc = Myc.Fetch(g, -1)) == RC_OK);
1148
1149 if (trace(2))
1150 htrc(" Read: rc=%d\n", rc);
1151
1152 return rc;
1153 } // end of ReadDB
1154
1155/***********************************************************************/
1156/* WriteDB: Data Base write routine for MYSQL access methods. */

Callers

nothing calls this directly

Calls 8

GetTdb_NoFunction · 0.85
PushWarningFunction · 0.85
FreeResultMethod · 0.80
SetMethod · 0.80
ExecSQLcmdMethod · 0.80
ExecSQLMethod · 0.80
htrcFunction · 0.70
FetchMethod · 0.45

Tested by

no test coverage detected