NCBI C++ ToolKit
Public Attributes | List of all members
tds_column Struct Reference

Search Toolkit Book for tds_column

Metadata about columns in regular and compute rows. More...

#include <dbapi/driver/ftds100/freetds/freetds/tds.h>

+ Collaboration diagram for tds_column:

Public Attributes

const TDSCOLUMNFUNCSfuncs
 
TDS_INT column_usertype
 
TDS_INT column_flags
 
TDS_INT column_size
 maximun size of data. More...
 
TDS_SERVER_TYPE column_type
 This type can be different from wire type because conversion (e.g. More...
 
TDS_TINYINT column_varint_size
 size of length when reading from wire (0, 1, 2 or 4) More...
 
TDS_TINYINT column_prec
 precision for decimal/numeric More...
 
TDS_TINYINT column_scale
 scale for decimal/numeric More...
 
struct {
   TDS_SERVER_TYPE   column_type
 type of data, saved from wire More...
 
   TDS_INT   column_size
 
on_server
 
TDSICONVchar_conv
 refers to previously allocated iconv information More...
 
DSTR table_name
 
DSTR column_name
 
DSTR table_column_name
 
TDS_INT column_def_size
 
unsigned char * column_default
 
unsigned char * column_data
 
void(* column_data_free )(struct tds_column *column)
 
unsigned int column_nullable:1
 
unsigned int column_writeable:1
 
unsigned int column_identity:1
 
unsigned int column_key:1
 
unsigned int column_hidden:1
 
unsigned int column_output:1
 
unsigned int column_timestamp:1
 
unsigned int column_hasdefault:1
 
TDS_UCHAR column_collation [5]
 
TDS_TINYINT column_operator
 
TDS_SMALLINT column_operand
 
TDS_INT column_cur_size
 size written in variable (ie: char, text, binary). More...
 
TDS_SMALLINT column_bindtype
 
TDS_SMALLINT column_bindfmt
 
TDS_UINT column_bindlen
 
TDS_SMALLINTcolumn_nullbind
 
TDS_CHARcolumn_varaddr
 
TDS_INTcolumn_lenbind
 
TDS_INT column_textpos
 
TDS_INT column_text_sqlgetdatapos
 
TDS_CHAR column_text_sqlputdatainfo
 
BCPCOLDATAbcp_column_data
 
TDS_INT bcp_prefix_len
 The length, in bytes, of any length prefix this column may have. More...
 
TDS_INT bcp_term_len
 
TDS_CHARbcp_terminator
 
struct {
   TDS_SERVER_TYPE   column_type
 type of data, saved from wire More...
 
   TDS_INT   column_size
 
on_server
 
unsigned char column_nullable:1
 
unsigned char column_writeable:1
 
unsigned char column_identity:1
 
unsigned char column_key:1
 
unsigned char column_hidden:1
 
unsigned char column_output:1
 
unsigned char column_timestamp:1
 
unsigned char column_computed:1
 
unsigned char column_iconv_left
 
char column_iconv_buf [9]
 

Detailed Description

Metadata about columns in regular and compute rows.

Definition at line 760 of file tds.h.

Member Data Documentation

◆ bcp_column_data

BCPCOLDATA * tds_column::bcp_column_data

◆ bcp_prefix_len

TDS_INT tds_column::bcp_prefix_len

The length, in bytes, of any length prefix this column may have.

For example, strings in some non-C programming languages are made up of a one-byte length prefix, followed by the string data itself. If the data do not have a length prefix, set prefixlen to 0. Currently not very used in code, however do not remove.

Definition at line 834 of file tds.h.

Referenced by _bcp_get_col_data(), bcp_bind(), and odbc_bcp_bind().

◆ bcp_term_len

TDS_INT tds_column::bcp_term_len

Definition at line 835 of file tds.h.

Referenced by _bcp_get_col_data(), bcp_bind(), and odbc_bcp_bind().

◆ bcp_terminator

TDS_CHAR * tds_column::bcp_terminator

◆ char_conv

TDSICONV * tds_column::char_conv

◆ column_bindfmt

TDS_SMALLINT tds_column::column_bindfmt

Definition at line 816 of file tds.h.

Referenced by _ct_bind_data(), blk_bind(), ct_bind(), ct_describe(), and test_type().

◆ column_bindlen

TDS_UINT tds_column::column_bindlen

◆ column_bindtype

TDS_SMALLINT tds_column::column_bindtype

◆ column_collation

TDS_UCHAR tds_column::column_collation

◆ column_computed

unsigned char tds_column::column_computed

◆ column_cur_size

TDS_INT tds_column::column_cur_size

◆ column_data

unsigned char * tds_column::column_data

◆ column_data_free

void(* tds_column::column_data_free)(struct tds_column *column)

◆ column_def_size

TDS_INT tds_column::column_def_size

Definition at line 790 of file tds.h.

Referenced by _blk_get_col_data(), and tds_bcp_read_column_defaults().

◆ column_default

unsigned char* tds_column::column_default

Definition at line 791 of file tds.h.

Referenced by _blk_get_col_data(), tds_bcp_read_column_defaults(), and tds_free_column().

◆ column_flags

TDS_INT tds_column::column_flags

◆ column_hasdefault

unsigned int tds_column::column_hasdefault

Definition at line 802 of file tds.h.

Referenced by _blk_get_col_data(), and tds_bcp_read_column_defaults().

◆ column_hidden [1/2]

unsigned int tds_column::column_hidden

◆ column_hidden [2/2]

unsigned char tds_column::column_hidden

Definition at line 752 of file tds.h.

◆ column_iconv_buf

char tds_column::column_iconv_buf[9]

Definition at line 778 of file tds.h.

Referenced by eat_iconv_left(), and odbc_convert_char().

◆ column_iconv_left

unsigned char tds_column::column_iconv_left

◆ column_identity [1/2]

unsigned int tds_column::column_identity

◆ column_identity [2/2]

unsigned char tds_column::column_identity

Definition at line 750 of file tds.h.

◆ column_key [1/2]

unsigned int tds_column::column_key

◆ column_key [2/2]

unsigned char tds_column::column_key

Definition at line 751 of file tds.h.

◆ column_lenbind

TDS_INT * tds_column::column_lenbind

◆ column_name

DSTR tds_column::column_name

◆ column_nullable [1/2]

unsigned int tds_column::column_nullable

◆ column_nullable [2/2]

unsigned char tds_column::column_nullable

Definition at line 748 of file tds.h.

◆ column_nullbind

TDS_SMALLINT * tds_column::column_nullbind

◆ column_operand

TDS_SMALLINT tds_column::column_operand

◆ column_operator

TDS_TINYINT tds_column::column_operator

◆ column_output [1/2]

unsigned int tds_column::column_output

◆ column_output [2/2]

unsigned char tds_column::column_output

Definition at line 753 of file tds.h.

◆ column_prec

TDS_TINYINT tds_column::column_prec

◆ column_scale

TDS_TINYINT tds_column::column_scale

◆ column_size

TDS_INT tds_column::column_size

maximun size of data.

For fixed is the size.

Definition at line 766 of file tds.h.

Referenced by _bcp_convert_out(), _bcp_get_col_data(), _bcp_read_hostfile(), _blk_get_col_data(), _ct_get_client_type(), _get_printable_size(), _SQLFetch(), _tdsodbc_dbconvert(), adjust_character_column_size(), blk_describe(), buffer_transfer_bound_data(), continue_parse_prepared_query(), create_type(), ct_describe(), data_clrudt_set_type_info(), data_generic_set_type_info(), dbaltbind(), dbaltlen(), dbalttype(), dbbind(), dbcollen(), dbcoltype(), dblib_coltype(), dbnextrow_pivoted(), dbprrow(), dbrettype(), dbspr1row(), dbtablecolinfo(), init_hostfile_columns(), main(), odbc_add_char_param(), odbc_fix_data_type_col(), odbc_set_return_params(), odbc_set_sql_type_info(), odbc_sql2tds(), odbc_tds2sql_col(), param_info_alloc(), paraminfoalloc(), paramrowalloc(), prepared_rpc(), reinit_results(), set_result_column(), SQLGetData(), SQLPutData(), tds5_bcp_add_fixed_columns(), tds5_bcp_add_variable_columns(), tds5_process_dyn_result2(), tds5_process_insert_bulk_reply(), tds5_process_result2(), tds5_swap_data(), tds7_get_data_info(), tds7_process_result(), tds_bcp_add_fixed_columns(), tds_bcp_add_variable_columns(), tds_bcp_init(), tds_bcp_start_copy_in(), tds_clrudt_get_info(), tds_cursor_get_cursor_info(), tds_fix_column_size(), tds_generic_get(), tds_generic_get_info(), tds_generic_put_info(), tds_generic_row_len(), tds_get_char_data(), tds_get_column_declaration(), tds_get_data_info(), tds_msdatetime_get_info(), tds_numeric_get_info(), tds_process_col_fmt(), tds_process_compute_result(), tds_process_param_result(), tds_put_param_as_string(), tds_set_column_type(), tds_set_nvc(), tds_set_param_type(), tds_set_spid(), tds_set_uvc(), tds_submit_optioncmd(), tds_sybbigtime_get_info(), tdsdump_col(), test(), and test0().

◆ column_text_sqlgetdatapos

TDS_INT tds_column::column_text_sqlgetdatapos

◆ column_text_sqlputdatainfo

TDS_CHAR tds_column::column_text_sqlputdatainfo

Definition at line 823 of file tds.h.

Referenced by continue_parse_prepared_query().

◆ column_textpos

TDS_INT tds_column::column_textpos

◆ column_timestamp [1/2]

unsigned int tds_column::column_timestamp

◆ column_timestamp [2/2]

unsigned char tds_column::column_timestamp

Definition at line 754 of file tds.h.

◆ column_type

TDS_SERVER_TYPE tds_column::column_type

This type can be different from wire type because conversion (e.g.

type of data, saved from wire

UCS-2->Ascii) can be applied. I'm beginning to wonder about the wisdom of this, however. April 2003 jkl

Definition at line 768 of file tds.h.

Referenced by _bcp_convert_out(), _bcp_get_col_data(), _bcp_read_hostfile(), _blk_get_col_data(), _cs_convert_not_client(), _ct_bind_data(), _ct_get_client_type(), _ct_process_return_status(), _get_printable_size(), _SQLFetch(), adjust_character_column_size(), bcp_bind(), blk_describe(), buffer_transfer_bound_data(), continue_parse_prepared_query(), create_type(), ct_describe(), ct_get_data(), data_generic_set_type_info(), data_msdatetime_set_type_info(), data_numeric_set_type_info(), data_sybbigtime_set_type_info(), dbadlen(), dbaltbind(), dbalttype(), dbbind(), dbcolinfo(), dbcoltype(), dbdatlen(), dblib_coltype(), dbnextrow_pivoted(), dbprrow(), dbrettype(), dbspr1row(), dbtablecolinfo(), dbvarylen(), extract_collations(), get_coll_md5(), init_hostfile_columns(), main(), odbc_bcp_bind(), odbc_fix_data_type_col(), odbc_set_return_params(), odbc_sql2tds(), odbc_tds2sql(), odbc_tds2sql_col(), param_row_alloc(), paraminfoalloc(), reinit_results(), rtrim_bcpcol(), set_result_column(), SQLGetData(), tds5_bcp_add_fixed_columns(), tds5_bcp_add_variable_columns(), tds5_get_col_data_or_dflt(), tds5_process_dyn_result2(), tds5_process_insert_bulk_reply(), tds5_process_result2(), tds5_read_bulk_defaults(), tds5_send_record(), tds5_swap_data(), tds72_get_varmax(), tds7_bcp_send_colmetadata(), tds7_build_bulk_insert_stmt(), tds7_get_data_info(), tds7_process_result(), tds7_send_record(), tds_alloc_param_data(), tds_bcp_add_fixed_columns(), tds_bcp_add_variable_columns(), tds_bcp_init(), tds_bcp_read_column_defaults(), tds_bcp_send_record(), tds_bcp_start_copy_in(), tds_cursor_get_cursor_info(), tds_fix_column_size(), tds_generic_get(), tds_generic_get_info(), tds_generic_put(), tds_generic_put_info(), tds_generic_put_info_len(), tds_get_column_declaration(), tds_get_data_info(), tds_msdatetime_get(), tds_msdatetime_get_info(), tds_msdatetime_put(), tds_msdatetime_put_info(), tds_param_free(), tds_process_col_fmt(), tds_put_char_param_as_string(), tds_put_data_info(), tds_put_param_as_string(), tds_set_column_type(), tds_set_param_type(), tds_set_spid(), tds_submit_optioncmd(), tds_variant_get(), tdsdump_col(), test0(), and value_as_string().

◆ column_usertype

TDS_INT tds_column::column_usertype

◆ column_varaddr

TDS_CHAR * tds_column::column_varaddr

◆ column_varint_size

TDS_TINYINT tds_column::column_varint_size

◆ column_writeable [1/2]

unsigned int tds_column::column_writeable

◆ column_writeable [2/2]

unsigned char tds_column::column_writeable

Definition at line 749 of file tds.h.

◆ funcs

const TDSCOLUMNFUNCS * tds_column::funcs

◆  [1/2]

struct { ... } tds_column::on_server

Referenced by _bcp_read_hostfile(), _blk_get_col_data(), _SQLFetch(), adjust_character_column_size(), create_type(), data_generic_set_type_info(), data_msdatetime_set_type_info(), data_numeric_set_type_info(), data_sybbigtime_set_type_info(), dbtablecolinfo(), get_coll_md5(), odbc_set_return_params(), odbc_set_sql_type_info(), odbc_sql2tds(), odbc_tds2sql_col(), param_info_alloc(), paraminfoalloc(), prepared_rpc(), reinit_results(), rtrim_bcpcol(), set_result_column(), SQLGetData(), tds5_bcp_add_fixed_columns(), tds5_bcp_add_variable_columns(), tds5_process_dyn_result2(), tds5_process_insert_bulk_reply(), tds5_process_result2(), tds5_send_record(), tds5_swap_data(), tds72_get_varmax(), tds7_bcp_send_colmetadata(), tds7_build_bulk_insert_stmt(), tds7_get_data_info(), tds7_process_result(), tds7_send_record(), tds_bcp_add_fixed_columns(), tds_bcp_add_variable_columns(), tds_bcp_init(), tds_bcp_send_record(), tds_bcp_start_copy_in(), tds_cursor_get_cursor_info(), tds_fix_column_size(), tds_generic_get(), tds_generic_get_info(), tds_generic_put(), tds_generic_put_info(), tds_generic_put_info_len(), tds_get_column_declaration(), tds_get_data_info(), tds_msdatetime_get_info(), tds_msdatetime_put(), tds_msdatetime_put_info(), tds_process_col_fmt(), tds_process_compute_result(), tds_put_char_param_as_string(), tds_put_data_info(), tds_put_param_as_string(), tds_set_column_type(), tds_set_nvc(), tds_set_param_type(), tds_set_uvc(), tds_submit_optioncmd(), and tds_sybbigtime_get_info().

◆  [2/2]

struct { ... } tds_column::on_server

◆ table_column_name

DSTR tds_column::table_column_name

◆ table_name

DSTR tds_column::table_name

The documentation for this struct was generated from the following file:
Modified on Fri Sep 20 14:57:03 2024 by modify_doxy.py rev. 669887