1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-15 09:02:33 +03:00

wl2126 - ndb - set correct found_p using new pseudo column NDB$RANGE_NO

This commit is contained in:
joreland@mysql.com
2004-12-06 09:05:30 +01:00
parent 5832078015
commit ac9f30df68
14 changed files with 129 additions and 51 deletions

View File

@@ -45,7 +45,8 @@ public:
NdbResultSet* readTuples(LockMode = LM_Read,
Uint32 batch = 0,
Uint32 parallel = 0,
bool order_by = false);
bool order_by = false,
bool read_range_no = false);
inline NdbResultSet* readTuples(int parallell){
return readTuples(LM_Read, 0, parallell, false);
@@ -119,7 +120,12 @@ public:
* Marks end of a bound,
* used when batching index reads (multiple ranges)
*/
int end_of_bound();
int end_of_bound(Uint32 range_no);
/**
* Return range no for current row
*/
Uint32 get_range_no();
bool getSorted() const { return m_ordered; }
private: