/ Data Base read routine for MYSQL access method. */ /
| 1130 | /* Data Base read routine for MYSQL access method. */ |
| 1131 | /***********************************************************************/ |
| 1132 | int 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. */ |
nothing calls this directly
no test coverage detected