GRASS Programmer's Manual
6.4.2(2012)
|
00001 00015 #include <grass/dbmi.h> 00016 #include "macros.h" 00017 00026 int db_bind_update(dbCursor * cursor) 00027 { 00028 int ret_code; 00029 00030 /* start the procedure call */ 00031 db__set_protocol_fds(cursor->driver->send, cursor->driver->recv); 00032 DB_START_PROCEDURE_CALL(DB_PROC_BIND_UPDATE); 00033 00034 /* send the argument(s) to the procedure */ 00035 DB_SEND_TOKEN(&cursor->token); 00036 DB_SEND_SHORT_ARRAY(cursor->column_flags, 00037 db_get_cursor_number_of_columns(cursor)); 00038 00039 /* get the return code for the procedure call */ 00040 DB_RECV_RETURN_CODE(&ret_code); 00041 00042 if (ret_code != DB_OK) 00043 return ret_code; /* ret_code SHOULD == DB_FAILED */ 00044 00045 /* no results */ 00046 return DB_OK; 00047 }