CUBRID Engine  latest
cas_meta.c File Reference
#include <assert.h>
#include "porting.h"
#include "cas_protocol.h"
Include dependency graph for cas_meta.c:

Go to the source code of this file.

Macros

#define SET_BIT(C, B)   ((C) |= (B))
 
#define CLEAR_BIT(C, B)   ((C) &= ~(B))
 
#define IS_SET_BIT(C, B)   (((C) & (B)) == (B))
 

Enumerations

enum  BI_FUNCTION_CODE { BI_FUNC_ERROR_CODE, BI_FUNC_SUPPORT_HOLDABLE_RESULT }
 

Functions

const char * cas_bi_get_broker_info (void)
 
void cas_bi_set_dbms_type (const char dbms_type)
 
char cas_bi_get_dbms_type (void)
 
void cas_bi_set_keep_connection (const char keep_connection)
 
char cas_bi_get_keep_connection (void)
 
void cas_bi_set_statement_pooling (const char statement_pooling)
 
char cas_bi_get_statement_pooling (void)
 
void cas_bi_set_cci_pconnect (const char cci_pconnect)
 
char cas_bi_get_cci_pconnect (void)
 
void cas_bi_set_protocol_version (const char protocol_version)
 
char cas_bi_get_protocol_version (void)
 
static void cas_bi_set_function_enable (BI_FUNCTION_CODE function_code)
 
static void cas_bi_set_function_disable (BI_FUNCTION_CODE function_code)
 
static bool cas_bi_is_enabled_function (BI_FUNCTION_CODE function_code)
 
void cas_bi_set_renewed_error_code (const bool renewed_error_code)
 
bool cas_bi_get_renewed_error_code (void)
 
bool cas_di_understand_renewed_error_code (const char *driver_info)
 
void cas_bi_make_broker_info (char *broker_info, char dbms_type, char statement_pooling, char cci_pconnect)
 

Variables

static char broker_info [BROKER_INFO_SIZE]
 

Macro Definition Documentation

#define CLEAR_BIT (   C,
 
)    ((C) &= ~(B))

Definition at line 31 of file cas_meta.c.

Referenced by cas_bi_set_function_disable().

#define IS_SET_BIT (   C,
 
)    (((C) & (B)) == (B))

Definition at line 32 of file cas_meta.c.

Referenced by cas_bi_is_enabled_function(), and cas_di_understand_renewed_error_code().

#define SET_BIT (   C,
 
)    ((C) |= (B))

Definition at line 30 of file cas_meta.c.

Referenced by cas_bi_set_function_enable().

Enumeration Type Documentation

Enumerator
BI_FUNC_ERROR_CODE 
BI_FUNC_SUPPORT_HOLDABLE_RESULT 

Definition at line 45 of file cas_meta.c.

Function Documentation

const char* cas_bi_get_broker_info ( void  )

Definition at line 52 of file cas_meta.c.

References broker_info.

Referenced by cas_send_connect_reply_to_driver().

Here is the caller graph for this function:

char cas_bi_get_cci_pconnect ( void  )

Definition at line 118 of file cas_meta.c.

References broker_info, and BROKER_INFO_CCI_PCONNECT.

char cas_bi_get_dbms_type ( void  )

Definition at line 64 of file cas_meta.c.

References broker_info, and BROKER_INFO_DBMS_TYPE.

char cas_bi_get_keep_connection ( void  )

Definition at line 76 of file cas_meta.c.

References broker_info, and BROKER_INFO_KEEP_CONNECTION.

char cas_bi_get_protocol_version ( void  )

Definition at line 130 of file cas_meta.c.

References broker_info, and BROKER_INFO_PROTO_VERSION.

bool cas_bi_get_renewed_error_code ( void  )

Definition at line 197 of file cas_meta.c.

References BI_FUNC_ERROR_CODE, and cas_bi_is_enabled_function().

char cas_bi_get_statement_pooling ( void  )

Definition at line 97 of file cas_meta.c.

References broker_info, and BROKER_INFO_STATEMENT_POOLING.

static bool cas_bi_is_enabled_function ( BI_FUNCTION_CODE  function_code)
static
void cas_bi_set_cci_pconnect ( const char  cci_pconnect)

Definition at line 103 of file cas_meta.c.

References assert, broker_info, BROKER_INFO_CCI_PCONNECT, CCI_PCONNECT_OFF, and CCI_PCONNECT_ON.

Referenced by cas_main().

Here is the caller graph for this function:

void cas_bi_set_dbms_type ( const char  dbms_type)

Definition at line 58 of file cas_meta.c.

References broker_info, and BROKER_INFO_DBMS_TYPE.

Referenced by cas_main().

Here is the caller graph for this function:

static void cas_bi_set_function_disable ( BI_FUNCTION_CODE  function_code)
static
static void cas_bi_set_function_enable ( BI_FUNCTION_CODE  function_code)
static
void cas_bi_set_keep_connection ( const char  keep_connection)

Definition at line 70 of file cas_meta.c.

References broker_info, and BROKER_INFO_KEEP_CONNECTION.

void cas_bi_set_protocol_version ( const char  protocol_version)

Definition at line 124 of file cas_meta.c.

References broker_info, and BROKER_INFO_PROTO_VERSION.

void cas_bi_set_renewed_error_code ( const bool  renewed_error_code)
void cas_bi_set_statement_pooling ( const char  statement_pooling)

Definition at line 82 of file cas_meta.c.

References assert, broker_info, BROKER_INFO_STATEMENT_POOLING, CAS_STATEMENT_POOLING_OFF, and CAS_STATEMENT_POOLING_ON.

Referenced by cas_main().

Here is the caller graph for this function:

bool cas_di_understand_renewed_error_code ( const char *  driver_info)

Variable Documentation