d_drop_col.c

Go to the documentation of this file.
00001 
00015 #include <stdlib.h>
00016 #include <grass/dbmi.h>
00017 #include "macros.h"
00018 #include "dbstubs.h"
00019 
00026 int db_d_drop_column(void)
00027 {
00028     dbString tableName;
00029     dbString columnName;
00030     int stat;
00031 
00032     db_init_string(&tableName);
00033     db_init_string(&columnName);
00034 
00035     /* get the arg(s) */
00036     DB_RECV_STRING(&tableName);
00037     DB_RECV_STRING(&columnName);
00038 
00039     /* call the procedure */
00040     stat = db_driver_drop_column(&tableName, &columnName);
00041     db_free_string(&tableName);
00042     db_free_string(&columnName);
00043 
00044     /* send the return code */
00045     if (stat != DB_OK) {
00046         DB_SEND_FAILURE();
00047         return DB_OK;
00048     }
00049     DB_SEND_SUCCESS();
00050 
00051     /* no results */
00052 
00053     return DB_OK;
00054 }

Generated on Thu Jul 16 13:20:15 2009 for GRASS Programmer's Manual by  doxygen 1.5.6