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

Method next_row

sql/sql_window.cc:1695–1721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1693 }
1694
1695 void next_row() override
1696 {
1697 if (move)
1698 {
1699 /*
1700 Our cursor is pointing at the first row that was a peer of the previous
1701 current row. Or, it was the first row in the partition.
1702 */
1703 if (cursor.fetch())
1704 return;
1705
1706 // todo: need the following check ?
1707 if (!peer_tracker.compare_with_cache())
1708 return;
1709 remove_value_from_items();
1710
1711 do
1712 {
1713 if (cursor.next() || cursor.fetch())
1714 return;
1715 if (!peer_tracker.compare_with_cache())
1716 return;
1717 remove_value_from_items();
1718 }
1719 while (1);
1720 }
1721 }
1722
1723 ha_rows get_curr_rownum() const override
1724 {

Callers

nothing calls this directly

Calls 3

compare_with_cacheMethod · 0.80
fetchMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected