GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
d_drop_col.c
Go to the documentation of this file.
1
15
#include <stdlib.h>
16
#include <grass/dbmi.h>
17
#include "
macros.h
"
18
#include "
dbstubs.h
"
19
26
int
db_d_drop_column
(
void
)
27
{
28
dbString tableName;
29
dbString columnName;
30
int
stat
;
31
32
db_init_string
(&tableName);
33
db_init_string
(&columnName);
34
35
/* get the arg(s) */
36
DB_RECV_STRING
(&tableName);
37
DB_RECV_STRING
(&columnName);
38
39
/* call the procedure */
40
stat =
db_driver_drop_column
(&tableName, &columnName);
41
db_free_string
(&tableName);
42
db_free_string
(&columnName);
43
44
/* send the return code */
45
if
(stat != DB_OK) {
46
DB_SEND_FAILURE
();
47
return
DB_OK;
48
}
49
DB_SEND_SUCCESS
();
50
51
/* no results */
52
53
return
DB_OK;
54
}
db_driver_drop_column
int(* db_driver_drop_column)()
macros.h
stat
int stat
Definition:
g3dcolor.c:369
DB_SEND_FAILURE
#define DB_SEND_FAILURE()
Definition:
macros.h:9
dbstubs.h
db_d_drop_column
int db_d_drop_column(void)
Drop column.
Definition:
d_drop_col.c:26
DB_SEND_SUCCESS
#define DB_SEND_SUCCESS()
Definition:
macros.h:7
db_free_string
void db_free_string(dbString *x)
Definition:
string.c:142
db_init_string
void db_init_string(dbString *x)
Definition:
string.c:11
DB_RECV_STRING
#define DB_RECV_STRING(x)
Definition:
macros.h:18
lib
db
dbmi_driver
d_drop_col.c
Generated on Sat Jan 2 2016 01:46:47 for GRASS Programmer's Manual by
1.8.5