internal void SetCurrentSubTable(MySqlSubTable currentSubTable) { this.currentSubTable = currentSubTable; this.fieldMaps = null; if (!currentSubTable.IsEmpty) { isEmptyTable = false; this.rows = currentSubTable.GetMySqlTableResult().rows; _isBinaryProtocol = currentSubTable.IsBinaryProtocol; subTableRowCount = rows.Count; //buffer for each row cells = new MyStructData[currentSubTable.FieldCount]; } else { isEmptyTable = true; _isBinaryProtocol = false; rows = null; subTableRowCount = 0; } currentRowIndex = 0; }