Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 1.2Mb


23.18.2 close

Purpose

Closes an open table.

Synopsis

virtual int close (

void);

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

  • void

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));
}

User Comments
Sign Up Login You must be logged in to post a comment.