My Project
Functions File Reference

Functions for easy reading of records, possible through a cache. More...

#include "records.h"
#include "sql_priv.h"
#include "sql_list.h"
#include "filesort.h"
#include "opt_range.h"
#include "sql_class.h"
#include "sql_select.h"


int rr_sequential (READ_RECORD *info)
bool init_read_record_idx (READ_RECORD *info, THD *thd, TABLE *table, bool print_error, uint idx, bool reverse)
bool init_read_record (READ_RECORD *info, THD *thd, TABLE *table, SQL_SELECT *select, int use_record_cache, bool print_error, bool disable_rr_cache)
void end_read_record (READ_RECORD *info)
void rr_unlock_row (st_join_table *tab)

Detailed Description

Functions for easy reading of records, possible through a cache.

Function Documentation

bool init_read_record_idx ( READ_RECORD info,
THD *  thd,
TABLE table,
bool  print_error,
uint  idx,
bool  reverse 

Initialize READ_RECORD structure to perform full index scan in desired direction using read_record.read_record() interface

This function has been added at late stage and is used only by UPDATE/DELETE. Other statements perform index scans using join_read_first/next functions.

infoREAD_RECORD structure to initialize.
thdThread handle
tableTable to be accessed
print_errorIf true, call table->file->print_error() if an error occurs (except for end-of-records error)
idxindex to scan
reverseScan in the reverse direction
Return values:
void rr_unlock_row ( st_join_table tab)

The default implementation of unlock-row method of READ_RECORD, used in all access methods.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines