~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_delete_table.cc

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
16
/*
17
17
  deletes a table
18
18
*/
19
19
 
20
 
#include "myisamdef.h"
 
20
#include "myisam_priv.h"
 
21
 
 
22
using namespace drizzled;
21
23
 
22
24
int mi_delete_table(const char *name)
23
25
{
24
26
  char from[FN_REFLEN];
25
27
 
26
 
  fn_format(from,name,"",MI_NAME_IEXT,MY_UNPACK_FILENAME|MY_APPEND_EXT);
27
 
  if (my_delete_with_symlink(from, 0))
28
 
    return(my_errno);
29
 
  fn_format(from,name,"",MI_NAME_DEXT,MY_UNPACK_FILENAME|MY_APPEND_EXT);
30
 
  return(my_delete_with_symlink(from, MYF(MY_WME)) ? my_errno : 0);
 
28
  internal::fn_format(from,name,"",MI_NAME_IEXT,MY_UNPACK_FILENAME|MY_APPEND_EXT);
 
29
  if (internal::my_delete_with_symlink(from, 0))
 
30
    return(errno);
 
31
  internal::fn_format(from,name,"",MI_NAME_DEXT,MY_UNPACK_FILENAME|MY_APPEND_EXT);
 
32
  return(internal::my_delete_with_symlink(from, MYF(MY_WME)) ? errno : 0);
31
33
}