bool MySQLResult::seekField(int64_t field) { if (field < 0 || field >= getFieldCount()) { raise_warning("Field %" PRId64 " is invalid for MySQL result index %d", field, o_getId()); return false; } if (!m_localized) { mysql_field_seek(m_res, (MYSQL_FIELD_OFFSET)field); } m_current_field = field - 1; return true; }
bool MySQLResult::seekRow(int64_t row) { if (row < 0 || row >= getRowCount()) { raise_warning("Unable to jump to row %" PRId64 " on MySQL result index %d", row, o_getId()); return false; } if (!m_localized) { mysql_data_seek(m_res, (my_ulonglong)row); } else { m_current_row = m_rows->begin(); for (int i = 0; i < row; i++) m_current_row++; m_row_ready = false; } return true; }
String ResourceData::t___tostring() { return String("Resource id #") + String(o_getId()); }