/ Fetch one result line from the query result set. */ /
| 822 | /* Fetch one result line from the query result set. */ |
| 823 | /***********************************************************************/ |
| 824 | int MYSQLC::Fetch(PGLOBAL g, int pos) |
| 825 | { |
| 826 | if (!m_DB) { |
| 827 | strcpy(g->Message, "MySQL not connected"); |
| 828 | return RC_FX; |
| 829 | } // endif m_DB |
| 830 | |
| 831 | if (!m_Res) { |
| 832 | // Result set was not initialized |
| 833 | strcpy(g->Message, MSG(FETCH_NO_RES)); |
| 834 | return RC_FX; |
| 835 | } else |
| 836 | N++; |
| 837 | |
| 838 | if (pos >= 0) |
| 839 | // mysql_data_seek(m_Res, (my_ulonglong)pos); |
| 840 | DataSeek((my_ulonglong)pos); |
| 841 | |
| 842 | m_Row = mysql_fetch_row(m_Res); |
| 843 | return (m_Row) ? RC_OK : RC_EF; |
| 844 | } // end of Fetch |
| 845 | |
| 846 | /***********************************************************************/ |
| 847 | /* Get one field of the current row. */ |
no test coverage detected