00001 #include <stdlib.h> 00002 #include <grass/dbmi.h> 00003 #include "macros.h" 00004 #include "dbstubs.h" 00005 00012 db_d_drop_table () 00013 { 00014 dbString name; 00015 int stat; 00016 00017 db_init_string (&name); 00018 00019 /* get the argument(s) to the procedure */ 00020 DB_RECV_STRING (&name); 00021 00022 /* call the procedure */ 00023 stat = db_driver_drop_table (&name); 00024 00025 db_free_string (&name); 00026 00027 /* send the return code */ 00028 if (stat != DB_OK) 00029 { 00030 DB_SEND_FAILURE(); 00031 return DB_OK; 00032 } 00033 DB_SEND_SUCCESS(); 00034 00035 /* no results */ 00036 return DB_OK; 00037 }