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

Method Fetch

storage/connect/myconn.cpp:824–844  ·  view source on GitHub ↗

/ Fetch one result line from the query result set. */ /

Source from the content-addressed store, hash-verified

822/* Fetch one result line from the query result set. */
823/***********************************************************************/
824int 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. */

Callers 12

ReadDBMethod · 0.45
ReadDBMethod · 0.45
ReadDBMethod · 0.45
MyColumnsFunction · 0.45
ReadDBMethod · 0.45
tabsys.cppFile · 0.45
ReadDBMethod · 0.45
tabxml.cppFile · 0.45
ReadBufferMethod · 0.45
SendCommandMethod · 0.45
ReadDBMethod · 0.45
ReadColumnMethod · 0.45

Calls 1

mysql_fetch_rowFunction · 0.85

Tested by

no test coverage detected