Purpose
Deletes a row.
Synopsis
virtual int delete_row
( |
buf); |
|
Description
This is the delete_row method.
buf will contain a copy of the row to be
deleted. The server will call this right after the current row
has been called (from either a previous
rnd_next() or index call). If you keep a
pointer to the last row or can access a primary key it will make
doing the deletion quite a bit easier. Keep in mind that the
server does not guarantee consecutive deletions. ORDER
BY clauses can be used.
Called in sql_acl.cc and
sql_udf.cc to manage internal table
information. Called in sql_delete.cc,
sql_insert.cc, and
sql_select.cc. In
sql_select it is used for removing
duplicates, while in insert it is used for
REPLACE calls.
Parameters
Return Values
There are no return values.
Usage
Default Implementation
{ return HA_ERR_WRONG_COMMAND; }