@@ -647,15 +647,15 @@ class Table_read_cursor : public Rowid_seq_cursor
647
647
end, and it needs an explicit command to move to the next partition.
648
648
*/
649
649
650
- class Partition_read_cursor
650
+ class Partition_read_cursor : public Table_read_cursor
651
651
{
652
652
public:
653
653
Partition_read_cursor (THD *thd, SQL_I_List<ORDER> *partition_list) :
654
654
bound_tracker (thd, partition_list) {}
655
655
656
656
void init (READ_RECORD *info)
657
657
{
658
- tbl_cursor. init (info);
658
+ Table_read_cursor:: init (info);
659
659
bound_tracker.init ();
660
660
end_of_partition= false ;
661
661
}
@@ -676,7 +676,7 @@ class Partition_read_cursor
676
676
/*
677
677
Moves to a new row. The row is assumed to be within the current partition.
678
678
*/
679
- void move_to (ha_rows rownum) { tbl_cursor. move_to (rownum); }
679
+ void move_to (ha_rows rownum) { Table_read_cursor:: move_to (rownum); }
680
680
681
681
/*
682
682
This returns -1 when end of partition was reached.
@@ -686,7 +686,7 @@ class Partition_read_cursor
686
686
int res;
687
687
if (end_of_partition)
688
688
return -1 ;
689
- if ((res= tbl_cursor. get_next ()))
689
+ if ((res= Table_read_cursor:: get_next ()))
690
690
return res;
691
691
692
692
if (bound_tracker.compare_with_cache ())
@@ -699,11 +699,10 @@ class Partition_read_cursor
699
699
700
700
bool restore_last_row ()
701
701
{
702
- return tbl_cursor. restore_last_row ();
702
+ return Table_read_cursor:: restore_last_row ();
703
703
}
704
704
705
705
private:
706
- Table_read_cursor tbl_cursor;
707
706
Group_bound_tracker bound_tracker;
708
707
bool end_of_partition;
709
708
};
0 commit comments