Documentation Home
MySQL Internals Manual


23.18.9 index_first

Purpose

Retrieve first row in index and return.

Synopsis

virtual int index_first (

buf);

byte *

buf ;

Description

This is the index_first method.

index_first() asks for the first key in the index.

Called from opt_range.cc, opt_sum.cc, sql_handler.cc, and sql_select.cc.

Parameters

  • buf - byte array to be populated with row.

Return Values

There are no return values.

Usage

Implementation depends on indexing method used.

Default Implementation

 { return HA_ERR_WRONG_COMMAND; }

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.