File csql_result.c
FileList > cubrid > src > executables > csql_result.c
Go to the source code of this file
#include "config.h"
#include <assert.h>
#include <float.h>
#include <setjmp.h>
#include <signal.h>
#include "csql.h"
#include "dbtran_def.h"
#include "dbtype.h"
#include "memory_alloc.h"
#include "object_primitive.h"
#include "porting.h"
#include "transaction_cl.h"
Classes
Public Static Attributes
Public Functions
Public Static Functions
| Type |
Name |
| int |
calculate_width (int column_width, int string_width, int origin_width, DB_TYPE attr_type, bool is_null)
|
| const char * |
csql_cmd_string (CUBRID_STMT_TYPE stmt_type, const char * default_string)
|
| void |
csql_pipe_handler (int sig_no)
|
| void |
display_empty_result (int stmt_type, int line_no)
|
| char ** |
get_current_result (int ** len, const CUR_RESULT_INFO * result_info, const CSQL_ARGUMENT * csql_arg)
|
| bool |
is_bit_type (DB_TYPE type)
|
| bool |
is_cuttable_type_by_string_width (DB_TYPE type)
|
| bool |
is_string_type (DB_TYPE type)
|
| bool |
is_type_that_has_suffix (DB_TYPE type)
|
| char * |
uncontrol_strdup (const char * from)
|
| char * |
uncontrol_strndup (const char * from, int length)
|
| int |
write_results_to_stream (const CSQL_ARGUMENT * csql_arg, FILE * fp, const CUR_RESULT_INFO * result_info)
|
Macros
Public Static Attributes Documentation
variable csql_Cmd_string_table
CSQL_CMD_STRING_TABLE csql_Cmd_string_table[];
variable csql_Isolation_level_string
const char* csql_Isolation_level_string[];
variable csql_Jmp_buf
variable csql_pipe_save
void(* csql_pipe_save) (int sig);
Public Functions Documentation
function csql_results
void csql_results (
const CSQL_ARGUMENT * csql_arg,
DB_QUERY_RESULT * result,
DB_QUERY_TYPE * attr_spec,
int line_no,
CUBRID_STMT_TYPE stmt_type
)
Public Static Functions Documentation
function calculate_width
static int calculate_width (
int column_width,
int string_width,
int origin_width,
DB_TYPE attr_type,
bool is_null
)
function csql_cmd_string
static const char * csql_cmd_string (
CUBRID_STMT_TYPE stmt_type,
const char * default_string
)
function csql_pipe_handler
static void csql_pipe_handler (
int sig_no
)
function display_empty_result
static void display_empty_result (
int stmt_type,
int line_no
)
function get_current_result
static char ** get_current_result (
int ** len,
const CUR_RESULT_INFO * result_info,
const CSQL_ARGUMENT * csql_arg
)
function is_bit_type
static bool is_bit_type (
DB_TYPE type
)
function is_cuttable_type_by_string_width
static bool is_cuttable_type_by_string_width (
DB_TYPE type
)
function is_string_type
static bool is_string_type (
DB_TYPE type
)
function is_type_that_has_suffix
static bool is_type_that_has_suffix (
DB_TYPE type
)
function uncontrol_strdup
static char * uncontrol_strdup (
const char * from
)
function uncontrol_strndup
static char * uncontrol_strndup (
const char * from,
int length
)
function write_results_to_stream
static int write_results_to_stream (
const CSQL_ARGUMENT * csql_arg,
FILE * fp,
const CUR_RESULT_INFO * result_info
)
Macro Definition Documentation
define BIT_TYPE_PREFIX_SUFFIX_LENGTH
#define BIT_TYPE_PREFIX_SUFFIX_LENGTH `3`
define MAX_BIGINT_DISPLAY_LENGTH
#define MAX_BIGINT_DISPLAY_LENGTH `20`
define MAX_DATETIMETZ_DISPLAY_LENGTH
#define MAX_DATETIMETZ_DISPLAY_LENGTH `( MAX_DATETIME_DISPLAY_LENGTH + MAX_TIMEZONE_DISPLAY_LENGTH )`
define MAX_DATETIME_DISPLAY_LENGTH
#define MAX_DATETIME_DISPLAY_LENGTH `29`
define MAX_DATE_DISPLAY_LENGTH
#define MAX_DATE_DISPLAY_LENGTH `10`
define MAX_DEFAULT_DISPLAY_LENGTH
#define MAX_DEFAULT_DISPLAY_LENGTH `20`
define MAX_DOUBLE_DISPLAY_LENGTH
#define MAX_DOUBLE_DISPLAY_LENGTH `( DBL_DIG + 9)`
define MAX_FLOAT_DISPLAY_LENGTH
#define MAX_FLOAT_DISPLAY_LENGTH `( FLT_DIG + 7)`
define MAX_INTEGER_DISPLAY_LENGTH
#define MAX_INTEGER_DISPLAY_LENGTH `11`
define MAX_MONETARY_DISPLAY_LENGTH
#define MAX_MONETARY_DISPLAY_LENGTH `20`
define MAX_SHORT_DISPLAY_LENGTH
#define MAX_SHORT_DISPLAY_LENGTH `6`
define MAX_TIMESTAMPTZ_DISPLAY_LENGTH
#define MAX_TIMESTAMPTZ_DISPLAY_LENGTH `( MAX_UTIME_DISPLAY_LENGTH + MAX_TIMEZONE_DISPLAY_LENGTH )`
define MAX_TIMEZONE_DISPLAY_LENGTH
#define MAX_TIMEZONE_DISPLAY_LENGTH `18`
define MAX_TIME_DISPLAY_LENGTH
#define MAX_TIME_DISPLAY_LENGTH `11`
define MAX_UTIME_DISPLAY_LENGTH
#define MAX_UTIME_DISPLAY_LENGTH `25`
define STRING_TYPE_PREFIX_SUFFIX_LENGTH
#define STRING_TYPE_PREFIX_SUFFIX_LENGTH `2`
The documentation for this class was generated from the following file cubrid/src/executables/csql_result.c