GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
c_bindupdate.c
Go to the documentation of this file.
1/*!
2 * \file lib/db/dbmi_client/c_bindupdate.c
3 *
4 * \brief DBMI Library (client) - bind update
5 *
6 * SPDX-FileCopyrightText: 1999-2008 GRASS Development Team
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 *
9 * \author Joel Jones (CERL/UIUC), Radim Blazek
10 */
11
12#include <grass/dbmi.h>
13#include "macros.h"
14
15/*!
16 \brief ?
17
18 \param cursor db cursor
19
20 \return DB_OK on success
21 \return DB_FAILED on failure
22 */
24{
25 int ret_code;
26
27 /* start the procedure call */
28 db__set_protocol_fds(cursor->driver->send, cursor->driver->recv);
30
31 /* send the argument(s) to the procedure */
32 DB_SEND_TOKEN(&cursor->token);
33 DB_SEND_SHORT_ARRAY(cursor->column_flags,
35
36 /* get the return code for the procedure call */
38
39 if (ret_code != DB_OK)
40 return ret_code; /* ret_code SHOULD == DB_FAILED */
41
42 /* no results */
43 return DB_OK;
44}
int db_bind_update(dbCursor *cursor)
?
Main header of GRASS DataBase Management Interface.
#define DB_OK
Definition dbmi.h:69
#define DB_PROC_BIND_UPDATE
Definition dbmi.h:44
void db__set_protocol_fds(FILE *, FILE *)
?
int db_get_cursor_number_of_columns(dbCursor *)
Get number of columns.
Definition cursor.c:390
#define DB_SEND_SHORT_ARRAY(x, n)
Definition macros.h:71
#define DB_START_PROCEDURE_CALL(x)
Definition macros.h:2
#define DB_RECV_RETURN_CODE(x)
Definition macros.h:7
#define DB_SEND_TOKEN(x)
Definition macros.h:214