GRASS Programmer's Manual 6.4.1(2011)
|
00001 00015 #include <stdlib.h> 00016 #include <grass/dbmi.h> 00017 #include "macros.h" 00018 #include "dbstubs.h" 00019 00026 int db_d_drop_index(void) 00027 { 00028 dbString name; 00029 int stat; 00030 00031 db_init_string(&name); 00032 00033 /* get the argument(s) to the procedure */ 00034 DB_RECV_STRING(&name); 00035 00036 /* call the procedure */ 00037 stat = db_driver_drop_index(&name); 00038 00039 db_free_string(&name); 00040 00041 /* send the return code */ 00042 if (stat != DB_OK) { 00043 DB_SEND_FAILURE(); 00044 return DB_OK; 00045 } 00046 DB_SEND_SUCCESS(); 00047 00048 /* no results */ 00049 return DB_OK; 00050 }