CDB_Object* CDBL_RowResult::GetItem(CDB_Object* item_buff, I_Result::EGetItem policy) { if ((unsigned int) m_CurrItem >= GetDefineParams().GetNum()) { return 0; } CDB_Object* r = GetItemInternal(policy, m_CurrItem + 1, &m_ColFmt[m_CurrItem], item_buff); ++m_CurrItem; m_Offset = 0; return r; }
CDB_Object* CTL_RowResult::GetItem(CDB_Object* item_buf, I_Result::EGetItem policy) { if ((unsigned int) CurrentItemNo() >= GetDefineParams().GetNum() || CurrentItemNo() == -1) { return 0; } CDB_Object* item = GetItemInternal( policy, x_GetSybaseCmd(), CurrentItemNo() + 1, m_ColFmt[CurrentItemNo()], item_buf); IncCurrentItemNum(); return item; }