mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.1 into 10.2
This commit is contained in:
@ -3230,9 +3230,17 @@ private:
|
||||
*/
|
||||
virtual int rnd_pos_by_record(uchar *record)
|
||||
{
|
||||
int error;
|
||||
DBUG_ASSERT(table_flags() & HA_PRIMARY_KEY_REQUIRED_FOR_POSITION);
|
||||
|
||||
error = ha_rnd_init(false);
|
||||
if (error != 0)
|
||||
return error;
|
||||
|
||||
position(record);
|
||||
return rnd_pos(record, ref);
|
||||
error = ha_rnd_pos(record, ref);
|
||||
ha_rnd_end();
|
||||
return error;
|
||||
}
|
||||
virtual int read_first_row(uchar *buf, uint primary_key);
|
||||
public:
|
||||
|
Reference in New Issue
Block a user