CUBRID Engine  latest
db_stub.c File Reference
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include "api_handle.h"
#include "db_stub.h"
#include "db.h"
#include "parser.h"
#include "schema_manager.h"
#include "execute_schema.h"
#include "execute_statement.h"
#include "boot_cl.h"
#include "system_parameter.h"
#include "authenticate.h"
#include "object_accessor.h"
#include "jsp_sr.h"
Include dependency graph for db_stub.c:

Go to the source code of this file.

Macros

#define API_PROGRAM_NAME   "CUBRID C API"
 
#define ER_SET_AND_RETURN(X)
 

Functions

static int conn_end_tran (BH_INTERFACE *bh_interface, CI_CONN_STRUCTURE *pconn, bool commit)
 
static int stmt_release_children (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, bool resultset_only)
 
static int stmt_bind_pmeta_handle (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, CI_PARAM_META_STRUCTURE **outmeta)
 
static int api_rmeta_get_count (API_RESULTSET_META *impl, int *count)
 
static int api_rmeta_get_info (API_RESULTSET_META *impl, int index, CI_RMETA_INFO_TYPE type, void *arg, size_t size)
 
static int api_rs_get_resultset_metadata (API_RESULTSET *res, API_RESULTSET_META **rimpl)
 
static int api_rs_fetch (API_RESULTSET *res, int offset, CI_FETCH_POSITION pos)
 
static int api_rs_fetch_tell (API_RESULTSET *res, int *offset)
 
static int api_rs_clear_updates (API_RESULTSET *res)
 
static int api_rs_delete_row (API_RESULTSET *res)
 
static int api_rs_get_value (API_RESULTSET *res, int index, CI_TYPE type, void *addr, size_t len, size_t *outlen, bool *is_null)
 
static int api_rs_get_value_by_name (API_RESULTSET *res, const char *name, CI_TYPE type, void *addr, size_t len, size_t *outlen, bool *isnull)
 
static int api_rs_update_value (API_RESULTSET *res, int index, CI_TYPE type, void *addr, size_t len)
 
static int api_rs_apply_row (API_RESULTSET *res)
 
static void api_rs_destroy (API_RESULTSET *res)
 
static int get_col_count (DB_QUERY_TYPE *query_type)
 
static int create_resultset_value_table (int num_col, BIND_HANDLE conn, CI_RESULTSET_STRUCTURE *prs, VALUE_BIND_TABLE **value_table)
 
static void conn_destroyf (BH_BIND *ptr)
 
static void stmt_destroyf (BH_BIND *ptr)
 
static void rs_destroyf (BH_BIND *ptr)
 
static void rs_meta_destroyf (BH_BIND *ptr)
 
static void pmeta_destroyf (BH_BIND *ptr)
 
static void batch_res_destroyf (BH_BIND *ptr)
 
static int init_conn_structure (CI_CONN_STRUCTURE *pconn)
 
static int init_stmt_structure (CI_STMT_STRUCTURE *pstmt)
 
static int init_resultset_structure (CI_RESULTSET_STRUCTURE *prs)
 
static int init_rmeta_structure (CI_RESULTSET_META_STRUCTURE *prmeta)
 
static int init_pmeta_structure (CI_PARAM_META_STRUCTURE *ppmeta)
 
static int init_batch_rs_structure (CI_BATCH_RESULT_STRUCTURE *pbrs)
 
static int stmt_exec_immediate_internal (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, char *sql, size_t len, CI_RESULTSET *rs, int *r)
 
static int stmt_prepare_internal (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, const char *sql, size_t len)
 
static int stmt_get_parameter_internal (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, int index, CI_TYPE type, void *addr, size_t len, size_t *outlen, bool *isnull)
 
static int stmt_set_parameter_internal (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, int index, CI_TYPE type, void *val, size_t size)
 
static int stmt_reset_session_and_parse (CI_STMT_STRUCTURE *pstmt, const char *sql, size_t len)
 
static int stmt_exec_internal (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, CI_RESULTSET *rs, int *r)
 
static int stmt_get_resultset_metadata_internal (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, CI_RESULTSET_METADATA *r)
 
static API_RESULTSET_META_IFSget_query_rmeta_ifs (void)
 
static API_RESULTSET_IFSget_query_rs_ifs (void)
 
static int stmt_bind_resultset_meta_handle (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, int stmt_idx, CI_RESULTSET_META_STRUCTURE **outmeta)
 
static int res_fetch_internal (BH_INTERFACE *bh_interface, CI_RESULTSET_STRUCTURE *prs, int offset, CI_FETCH_POSITION pos)
 
static int res_delete_row_internal (BH_INTERFACE *bh_interface, CI_RESULTSET_STRUCTURE *prs)
 
static int rs_get_index_by_name (void *impl, const char *name, int *ri)
 
static int rs_get_db_value (void *impl, int index, DB_VALUE *val)
 
static int rs_set_db_value (void *impl, int index, DB_VALUE *val)
 
static int rs_init_domain (void *impl, int index, DB_VALUE *val)
 
static int pmeta_get_info_internal (BH_INTERFACE *bh_interface, CI_PARAM_META_STRUCTURE *ppmeta, int index, CI_PMETA_INFO_TYPE type, void *arg, size_t size)
 
static int stmt_add_batch_param (CI_STMT_STRUCTURE *pstmt, DB_VALUE *val, int num_val)
 
static int stmt_exec_prepared_batch_internal (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, CI_BATCH_RESULT *br)
 
static int stmt_exec_batch_query_internal (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, CI_BATCH_RESULT *br)
 
static int conn_restart_client (CI_CONN_STRUCTURE *pconn, const char *program, int print_version, const char *volume, short port)
 
static int get_connection_opool (COMMON_API_STRUCTURE *pst, API_OBJECT_RESULTSET_POOL **opool)
 
static int stmt_batch_alloc_and_bind_new_result (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt, CI_BATCH_RESULT_STRUCTURE **out_pbrs, CI_BATCH_RESULT *outhbr)
 
static int stmt_batch_result_free (BH_INTERFACE *bh_interface, CI_STMT_STRUCTURE *pstmt)
 
static int stmt_add_batch_string (CI_STMT_STRUCTURE *pstmt, const char *sql, size_t len)
 
static int stmt_make_error_info (CI_STMT_STRUCTURE *pstmt, int statement_id)
 
static int stmt_remove_error_info (CI_STMT_STRUCTURE *pstmt)
 
static int stmt_exec_one_statement (BH_INTERFACE *bh_interface, int stmt_idx, CI_STMT_STRUCTURE *pstmt, CI_RESULTSET *rs, int *r)
 
int ci_err_set (int error_code)
 
static int ci_create_connection_impl (CI_CONNECTION *conn)
 
static int ci_conn_connect_impl (COMMON_API_STRUCTURE *pst, const char *host, unsigned short port, const char *databasename, const char *user_name, const char *password)
 
static int ci_conn_close_impl (COMMON_API_STRUCTURE *pst)
 
static int ci_conn_create_statement_impl (COMMON_API_STRUCTURE *pst, CI_STATEMENT *stmt)
 
static int ci_conn_set_option_impl (COMMON_API_STRUCTURE *pst, CI_CONNECTION_OPTION option, void *arg, size_t size)
 
static int ci_conn_get_option_impl (COMMON_API_STRUCTURE *pst, CI_CONNECTION_OPTION option, void *arg, size_t size)
 
static int ci_conn_commit_impl (COMMON_API_STRUCTURE *pst)
 
static int ci_conn_rollback_impl (COMMON_API_STRUCTURE *pst)
 
static int ci_conn_get_error_impl (COMMON_API_STRUCTURE *pst, int *err, char *msg, size_t size)
 
static int ci_stmt_add_batch_query_impl (COMMON_API_STRUCTURE *pst, const char *sql, size_t len)
 
static int ci_stmt_add_batch_impl (COMMON_API_STRUCTURE *pst)
 
static int ci_stmt_clear_batch_impl (COMMON_API_STRUCTURE *pst)
 
static int ci_stmt_execute_immediate_impl (COMMON_API_STRUCTURE *pst, char *sql, size_t len, CI_RESULTSET *rs, int *r)
 
static int ci_stmt_execute_impl (COMMON_API_STRUCTURE *pst, CI_RESULTSET *rs, int *r)
 
static int ci_stmt_execute_batch_impl (COMMON_API_STRUCTURE *pst, CI_BATCH_RESULT *br)
 
static int ci_stmt_get_option_impl (COMMON_API_STRUCTURE *pst, CI_STATEMENT_OPTION option, void *arg, size_t size)
 
static int ci_stmt_set_option_impl (COMMON_API_STRUCTURE *pst, CI_STATEMENT_OPTION option, void *arg, size_t size)
 
static int ci_stmt_prepare_impl (COMMON_API_STRUCTURE *pst, const char *sql, size_t len)
 
static int ci_stmt_register_out_parameter_impl (COMMON_API_STRUCTURE *pst, int index)
 
static int ci_stmt_get_resultset_metadata_impl (COMMON_API_STRUCTURE *pst, CI_RESULTSET_METADATA *r)
 
static int ci_stmt_get_parameter_metadata_impl (COMMON_API_STRUCTURE *pst, CI_PARAMETER_METADATA *r)
 
static int ci_stmt_get_parameter_impl (COMMON_API_STRUCTURE *pst, int index, CI_TYPE type, void *addr, size_t len, size_t *outlen, bool *isnull)
 
static int ci_stmt_set_parameter_impl (COMMON_API_STRUCTURE *pst, int index, CI_TYPE type, void *val, size_t size)
 
static int ci_stmt_get_resultset_impl (COMMON_API_STRUCTURE *pst, CI_RESULTSET *res)
 
static int ci_stmt_affected_rows_impl (COMMON_API_STRUCTURE *pst, int *out)
 
static int ci_stmt_next_result_impl (COMMON_API_STRUCTURE *pst, bool *exist_result)
 
static int ci_batch_res_query_count_impl (COMMON_API_STRUCTURE *pst, int *count)
 
static int ci_batch_res_get_result_impl (COMMON_API_STRUCTURE *pst, int index, int *ret, int *nr)
 
static int ci_batch_res_get_error_impl (COMMON_API_STRUCTURE *pst, int index, int *err_code, char *err_msg, size_t buf_size)
 
static int ci_pmeta_get_count_impl (COMMON_API_STRUCTURE *pst, int *count)
 
static int ci_pmeta_get_info_impl (COMMON_API_STRUCTURE *pst, int index, CI_PMETA_INFO_TYPE type, void *arg, size_t size)
 
static int ci_stmt_get_first_error_impl (COMMON_API_STRUCTURE *pst, int *line, int *col, int *errcode, char *err_msg, size_t size)
 
static int ci_stmt_get_next_error_impl (COMMON_API_STRUCTURE *pst, int *line, int *col, int *errcode, char *err_msg, size_t size)
 
static int ci_stmt_get_query_type_impl (COMMON_API_STRUCTURE *pst, CUBRID_STMT_TYPE *type)
 
static int ci_stmt_get_start_line_impl (COMMON_API_STRUCTURE *pst, int *line)
 
static int ci_collection_new_impl (CI_CONNECTION conn, CI_COLLECTION *coll)
 

Variables

static API_RESULTSET_META_IFS RMETA_IFS_
 
static API_RESULTSET_IFS RS_IFS_
 
CUBRID_API_FUNCTION_TABLE Cubrid_api_function_table
 

Macro Definition Documentation

#define API_PROGRAM_NAME   "CUBRID C API"

Definition at line 41 of file db_stub.c.

Referenced by ci_conn_connect_impl().

#define ER_SET_AND_RETURN (   X)
Value:
do { \
if (X != NO_ERROR) { \
return X; \
} \
} while(0)
#define NO_ERROR
Definition: error_code.h:46
if(extra_options)
Definition: dynamic_load.c:958
int ci_err_set(int error_code)
Definition: db_stub.c:3064

Definition at line 43 of file db_stub.c.

Referenced by api_rmeta_get_info(), api_rs_apply_row(), api_rs_clear_updates(), api_rs_delete_row(), api_rs_get_resultset_metadata(), api_rs_get_value(), api_rs_get_value_by_name(), api_rs_update_value(), ci_batch_res_get_error_impl(), ci_batch_res_get_result_impl(), ci_conn_create_statement_impl(), ci_conn_get_option_impl(), ci_conn_set_option_impl(), ci_create_connection_impl(), ci_stmt_add_batch_impl(), ci_stmt_add_batch_query_impl(), ci_stmt_affected_rows_impl(), ci_stmt_clear_batch_impl(), ci_stmt_execute_batch_impl(), ci_stmt_execute_immediate_impl(), ci_stmt_execute_impl(), ci_stmt_get_first_error_impl(), ci_stmt_get_next_error_impl(), ci_stmt_get_option_impl(), ci_stmt_get_parameter_impl(), ci_stmt_get_parameter_metadata_impl(), ci_stmt_get_query_type_impl(), ci_stmt_get_resultset_impl(), ci_stmt_get_resultset_metadata_impl(), ci_stmt_get_start_line_impl(), ci_stmt_next_result_impl(), ci_stmt_prepare_impl(), ci_stmt_register_out_parameter_impl(), ci_stmt_set_option_impl(), ci_stmt_set_parameter_impl(), conn_end_tran(), pmeta_get_info_internal(), res_delete_row_internal(), rs_get_index_by_name(), rs_init_domain(), rs_set_db_value(), stmt_add_batch_param(), stmt_add_batch_string(), stmt_batch_alloc_and_bind_new_result(), stmt_batch_result_free(), stmt_bind_pmeta_handle(), stmt_bind_resultset_meta_handle(), stmt_exec_batch_query_internal(), stmt_exec_immediate_internal(), stmt_exec_internal(), stmt_exec_one_statement(), stmt_get_parameter_internal(), stmt_get_resultset_metadata_internal(), stmt_prepare_internal(), stmt_release_children(), stmt_reset_session_and_parse(), and stmt_set_parameter_internal().

Function Documentation

static int api_rmeta_get_count ( API_RESULTSET_META impl,
int *  count 
)
static

Definition at line 982 of file db_stub.c.

References assert, ci_resultset_meta_s::col_count, and NO_ERROR.

static void api_rs_destroy ( API_RESULTSET res)
static

Definition at line 970 of file db_stub.c.

static int api_rs_get_value ( API_RESULTSET res,
int  index,
CI_TYPE  type,
void *  addr,
size_t  len,
size_t *  outlen,
bool is_null 
)
static
static int api_rs_get_value_by_name ( API_RESULTSET res,
const char *  name,
CI_TYPE  type,
void *  addr,
size_t  len,
size_t *  outlen,
bool isnull 
)
static
static void batch_res_destroyf ( BH_BIND ptr)
static

Definition at line 457 of file db_stub.c.

References assert, ci_batch_result_info_s::err_msg, HANDLE_TYPE_BATCH_RESULT, i, NULL, ci_batch_result_s::rs_count, and ci_batch_result_s::rs_info.

Referenced by init_batch_rs_structure().

Here is the caller graph for this function:

static int ci_batch_res_get_error_impl ( COMMON_API_STRUCTURE pst,
int  index,
int *  err_code,
char *  err_msg,
size_t  buf_size 
)
static
static int ci_batch_res_get_result_impl ( COMMON_API_STRUCTURE pst,
int  index,
int *  ret,
int *  nr 
)
static
static int ci_batch_res_query_count_impl ( COMMON_API_STRUCTURE pst,
int *  count 
)
static

Definition at line 4266 of file db_stub.c.

References NO_ERROR, and ci_batch_result_s::rs_count.

static int ci_collection_new_impl ( CI_CONNECTION  conn,
CI_COLLECTION *  coll 
)
static

Definition at line 4545 of file db_stub.c.

References api_collection_create(), and NO_ERROR.

static int ci_conn_close_impl ( COMMON_API_STRUCTURE pst)
static
static int ci_conn_commit_impl ( COMMON_API_STRUCTURE pst)
static

Definition at line 3368 of file db_stub.c.

References ci_conn_s::bh_interface, and conn_end_tran().

static int ci_conn_connect_impl ( COMMON_API_STRUCTURE pst,
const char *  host,
unsigned short  port,
const char *  databasename,
const char *  user_name,
const char *  password 
)
static
static int ci_conn_create_statement_impl ( COMMON_API_STRUCTURE pst,
CI_STATEMENT *  stmt 
)
static
static int ci_conn_get_error_impl ( COMMON_API_STRUCTURE pst,
int *  err,
char *  msg,
size_t  size 
)
static

Definition at line 3407 of file db_stub.c.

References api_get_errid, api_get_errmsg, assert, and NO_ERROR.

static int ci_conn_get_option_impl ( COMMON_API_STRUCTURE pst,
CI_CONNECTION_OPTION  option,
void *  arg,
size_t  size 
)
static
static int ci_conn_rollback_impl ( COMMON_API_STRUCTURE pst)
static

Definition at line 3386 of file db_stub.c.

References ci_conn_s::bh_interface, and conn_end_tran().

static int ci_conn_set_option_impl ( COMMON_API_STRUCTURE pst,
CI_CONNECTION_OPTION  option,
void *  arg,
size_t  size 
)
static
int ci_err_set ( int  error_code)

Definition at line 3064 of file db_stub.c.

References api_er_set, ARG_FILE_LINE, ER_ERROR_SEVERITY, and NO_ERROR.

Referenced by stmt_reset_session_and_parse().

Here is the caller graph for this function:

static int ci_pmeta_get_count_impl ( COMMON_API_STRUCTURE pst,
int *  count 
)
static

Definition at line 4342 of file db_stub.c.

References NO_ERROR, and ci_parater_meta_s::param_count.

static int ci_pmeta_get_info_impl ( COMMON_API_STRUCTURE pst,
int  index,
CI_PMETA_INFO_TYPE  type,
void *  arg,
size_t  size 
)
static

Definition at line 4363 of file db_stub.c.

References ci_parater_meta_s::bh_interface, and pmeta_get_info_internal().

static int ci_stmt_get_option_impl ( COMMON_API_STRUCTURE pst,
CI_STATEMENT_OPTION  option,
void *  arg,
size_t  size 
)
static
static int ci_stmt_get_parameter_impl ( COMMON_API_STRUCTURE pst,
int  index,
CI_TYPE  type,
void *  addr,
size_t  len,
size_t *  outlen,
bool isnull 
)
static
static int ci_stmt_get_parameter_metadata_impl ( COMMON_API_STRUCTURE pst,
CI_PARAMETER_METADATA *  r 
)
static
static int ci_stmt_get_resultset_metadata_impl ( COMMON_API_STRUCTURE pst,
CI_RESULTSET_METADATA *  r 
)
static
static int ci_stmt_set_option_impl ( COMMON_API_STRUCTURE pst,
CI_STATEMENT_OPTION  option,
void *  arg,
size_t  size 
)
static
static int ci_stmt_set_parameter_impl ( COMMON_API_STRUCTURE pst,
int  index,
CI_TYPE  type,
void *  val,
size_t  size 
)
static
static void conn_destroyf ( BH_BIND ptr)
static

Definition at line 225 of file db_stub.c.

References assert, api_object_resultset_pool_s::destroy, HANDLE_TYPE_CONNECTION, and ci_conn_s::opool.

Referenced by init_conn_structure().

Here is the caller graph for this function:

static int create_resultset_value_table ( int  num_col,
BIND_HANDLE  conn,
CI_RESULTSET_STRUCTURE prs,
VALUE_BIND_TABLE **  value_table 
)
static

Definition at line 2291 of file db_stub.c.

References create_db_value_bind_table(), rs_get_db_value(), rs_get_index_by_name(), rs_init_domain(), rs_set_db_value(), and ci_resultset_s::value_table.

Referenced by stmt_exec_internal(), and stmt_exec_one_statement().

Here is the caller graph for this function:

static int get_col_count ( DB_QUERY_TYPE query_type)
static

Definition at line 2058 of file db_stub.c.

References cubregex::count(), and db_query_type::next.

Referenced by stmt_bind_resultset_meta_handle().

Here is the caller graph for this function:

static int get_connection_opool ( COMMON_API_STRUCTURE pst,
API_OBJECT_RESULTSET_POOL **  opool 
)
static

Definition at line 3041 of file db_stub.c.

References NO_ERROR, and ci_conn_s::opool.

static API_RESULTSET_META_IFS * get_query_rmeta_ifs ( void  )
static

Definition at line 1910 of file db_stub.c.

References RMETA_IFS_.

Referenced by init_rmeta_structure().

Here is the caller graph for this function:

static API_RESULTSET_IFS * get_query_rs_ifs ( void  )
static

Definition at line 1920 of file db_stub.c.

References RS_IFS_.

Referenced by init_resultset_structure().

Here is the caller graph for this function:

static int init_batch_rs_structure ( CI_BATCH_RESULT_STRUCTURE pbrs)
static

Definition at line 583 of file db_stub.c.

References assert, batch_res_destroyf(), HANDLE_TYPE_BATCH_RESULT, NO_ERROR, and ci_batch_result_s::rs_count.

Referenced by stmt_batch_alloc_and_bind_new_result().

Here is the caller graph for this function:

static int init_conn_structure ( CI_CONN_STRUCTURE pconn)
static

Definition at line 492 of file db_stub.c.

References assert, conn_destroyf(), HANDLE_TYPE_CONNECTION, and NO_ERROR.

Referenced by ci_create_connection_impl().

Here is the caller graph for this function:

static int init_pmeta_structure ( CI_PARAM_META_STRUCTURE ppmeta)
static

Definition at line 566 of file db_stub.c.

References assert, HANDLE_TYPE_PMETA, NO_ERROR, and pmeta_destroyf().

Referenced by stmt_bind_pmeta_handle().

Here is the caller graph for this function:

static int init_resultset_structure ( CI_RESULTSET_STRUCTURE prs)
static

Definition at line 530 of file db_stub.c.

References assert, get_query_rs_ifs(), HANDLE_TYPE_RESULTSET, NO_ERROR, and rs_destroyf().

Referenced by stmt_exec_internal(), and stmt_exec_one_statement().

Here is the caller graph for this function:

static int init_rmeta_structure ( CI_RESULTSET_META_STRUCTURE prmeta)
static

Definition at line 548 of file db_stub.c.

References assert, get_query_rmeta_ifs(), HANDLE_TYPE_RMETA, NO_ERROR, and rs_meta_destroyf().

Referenced by stmt_bind_resultset_meta_handle().

Here is the caller graph for this function:

static int init_stmt_structure ( CI_STMT_STRUCTURE pstmt)
static

Definition at line 510 of file db_stub.c.

References assert, HANDLE_TYPE_STATEMENT, NO_ERROR, and stmt_destroyf().

Referenced by ci_conn_create_statement_impl().

Here is the caller graph for this function:

static void pmeta_destroyf ( BH_BIND ptr)
static

Definition at line 435 of file db_stub.c.

References assert, and HANDLE_TYPE_PMETA.

Referenced by init_pmeta_structure().

Here is the caller graph for this function:

static int pmeta_get_info_internal ( BH_INTERFACE bh_interface,
CI_PARAM_META_STRUCTURE ppmeta,
int  index,
CI_PMETA_INFO_TYPE  type,
void *  arg,
size_t  size 
)
static
static int res_fetch_internal ( BH_INTERFACE bh_interface,
CI_RESULTSET_STRUCTURE prs,
int  offset,
CI_FETCH_POSITION  pos 
)
static

Definition at line 1992 of file db_stub.c.

References assert, DB_CURSOR_END, DB_CURSOR_SUCCESS, db_query_seek_tuple(), er_errid(), ER_INTERFACE_END_OF_CURSOR, NO_ERROR, and ci_resultset_s::result.

Referenced by api_rs_fetch().

Here is the caller graph for this function:

static int rs_get_db_value ( void *  impl,
int  index,
DB_VALUE val 
)
static

Definition at line 2127 of file db_stub.c.

References assert, db_query_get_tuple_value(), and ci_resultset_s::result.

Referenced by create_resultset_value_table().

Here is the caller graph for this function:

static int rs_get_index_by_name ( void *  impl,
const char *  name,
int *  ri 
)
static
static void rs_meta_destroyf ( BH_BIND ptr)
static

Definition at line 413 of file db_stub.c.

References assert, and HANDLE_TYPE_RMETA.

Referenced by init_rmeta_structure().

Here is the caller graph for this function:

static int stmt_add_batch_param ( CI_STMT_STRUCTURE pstmt,
DB_VALUE val,
int  num_val 
)
static
static int stmt_add_batch_string ( CI_STMT_STRUCTURE pstmt,
const char *  sql,
size_t  len 
)
static
static int stmt_batch_alloc_and_bind_new_result ( BH_INTERFACE bh_interface,
CI_STMT_STRUCTURE pstmt,
CI_BATCH_RESULT_STRUCTURE **  out_pbrs,
CI_BATCH_RESULT *  outhbr 
)
static
static int stmt_batch_result_free ( BH_INTERFACE bh_interface,
CI_STMT_STRUCTURE pstmt 
)
static
static int stmt_get_parameter_internal ( BH_INTERFACE bh_interface,
CI_STMT_STRUCTURE pstmt,
int  index,
CI_TYPE  type,
void *  addr,
size_t  len,
size_t *  outlen,
bool isnull 
)
static
static int stmt_get_resultset_metadata_internal ( BH_INTERFACE bh_interface,
CI_STMT_STRUCTURE pstmt,
CI_RESULTSET_METADATA *  r 
)
static
static int stmt_release_children ( BH_INTERFACE bh_interface,
CI_STMT_STRUCTURE pstmt,
bool  resultset_only 
)
static
static int stmt_remove_error_info ( CI_STMT_STRUCTURE pstmt)
static

Definition at line 200 of file db_stub.c.

References ci_stmt_s::err_info, err_info, ci_stmt_error_info_s::err_msg, ci_stmt_error_info_s::next, NO_ERROR, and NULL.

Referenced by stmt_destroyf(), stmt_exec_internal(), stmt_exec_one_statement(), and stmt_prepare_internal().

Here is the caller graph for this function:

static int stmt_set_parameter_internal ( BH_INTERFACE bh_interface,
CI_STMT_STRUCTURE pstmt,
int  index,
CI_TYPE  type,
void *  val,
size_t  size 
)
static

Variable Documentation

CUBRID_API_FUNCTION_TABLE Cubrid_api_function_table

Definition at line 4559 of file db_stub.c.

API_RESULTSET_META_IFS RMETA_IFS_
static
Initial value:
= {
}
static int api_rmeta_get_count(API_RESULTSET_META *impl, int *count)
Definition: db_stub.c:982
static int api_rmeta_get_info(API_RESULTSET_META *impl, int index, CI_RMETA_INFO_TYPE type, void *arg, size_t size)
Definition: db_stub.c:1005

Definition at line 176 of file db_stub.c.

Referenced by get_query_rmeta_ifs().

API_RESULTSET_IFS RS_IFS_
static
Initial value:
= {
}
static int api_rs_delete_row(API_RESULTSET *res)
Definition: db_stub.c:768
static int api_rs_get_resultset_metadata(API_RESULTSET *res, API_RESULTSET_META **rimpl)
Definition: db_stub.c:601
static int api_rs_fetch(API_RESULTSET *res, int offset, CI_FETCH_POSITION pos)
Definition: db_stub.c:665
static void api_rs_destroy(API_RESULTSET *res)
Definition: db_stub.c:970
static int api_rs_get_value_by_name(API_RESULTSET *res, const char *name, CI_TYPE type, void *addr, size_t len, size_t *outlen, bool *isnull)
Definition: db_stub.c:851
static int api_rs_clear_updates(API_RESULTSET *res)
Definition: db_stub.c:724
static int api_rs_apply_row(API_RESULTSET *res)
Definition: db_stub.c:927
static int api_rs_update_value(API_RESULTSET *res, int index, CI_TYPE type, void *addr, size_t len)
Definition: db_stub.c:881
static int api_rs_fetch_tell(API_RESULTSET *res, int *offset)
Definition: db_stub.c:691
static int api_rs_get_value(API_RESULTSET *res, int index, CI_TYPE type, void *addr, size_t len, size_t *outlen, bool *is_null)
Definition: db_stub.c:817

Definition at line 181 of file db_stub.c.

Referenced by get_query_rs_ifs().