c_create_tab.c

Go to the documentation of this file.
00001 
00015 #include <grass/dbmi.h>
00016 #include "macros.h"
00017 
00027 int db_create_table(dbDriver * driver, dbTable * table)
00028 {
00029     int ret_code;
00030 
00031     /* start the procedure call */
00032     db__set_protocol_fds(driver->send, driver->recv);
00033     DB_START_PROCEDURE_CALL(DB_PROC_CREATE_TABLE);
00034 
00035     /* send the argument(s) to the procedure */
00036     DB_SEND_TABLE_DEFINITION(table);
00037 
00038     /* get the return code for the procedure call */
00039     DB_RECV_RETURN_CODE(&ret_code);
00040 
00041     if (ret_code != DB_OK)
00042         return ret_code;        /* ret_code SHOULD == DB_FAILED */
00043 
00044     /* no results */
00045     return DB_OK;
00046 }

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