Purpose
Closes an open table.
Synopsis
virtual int close
( |
void) ; |
|
Description
This is the close
method.
Closes a table. A good time to free any resources that we have
allocated.
Called from sql_base.cc, sql_select.cc, and table.cc. In
sql_select.cc it is only used to close up temporary tables or
during the process where a temporary table is converted over to
being a MyISAM
table. For sql_base.cc look at
close_data_tables().
Parameters
Return Values
There are no return values.
Usage
Example from the CSV
engine:
int ha_example::close(void)
{
DBUG_ENTER("ha_example::close");
DBUG_RETURN(free_share(share));
}