Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

# tds_column Struct Reference

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

`#include <tds.h>`

List of all members.

## Public Attributes
BCPCOLDATA * | bcp_column_data
TDS_INT | bcp_prefix_len
| The length, in bytes, of any length prefix this column may have.
TDS_INT | bcp_term_len
TDS_CHAR * | bcp_terminator
const TDSICONV * | char_conv
| refers to previously allocated iconv information
TDS_SMALLINT | column_bindfmt
TDS_UINT | column_bindlen
TDS_SMALLINT | column_bindtype
TDS_UCHAR | column_collation [5]
TDS_INT | column_cur_size
| size written in variable (ie: char, text, binary).
unsigned char * | column_data
void(* | column_data_free )(struct tds_column *column)
TDS_INT | column_flags
unsigned int | column_hidden:1
unsigned int | column_identity:1
unsigned int | column_key:1
TDS_INT * | column_lenbind
TDS_CHAR | column_name [TDS_SYSNAME_SIZE]
TDS_SMALLINT | column_namelen
| length of column name
unsigned int | column_nullable:1
TDS_SMALLINT * | column_nullbind
TDS_SMALLINT | column_operand
TDS_TINYINT | column_operator
unsigned int | column_output:1
TDS_TINYINT | column_prec
| precision for decimal/numeric
TDS_TINYINT | column_scale
| scale for decimal/numeric
TDS_INT | column_size
| maximun size of data
TDS_INT | column_text_sqlgetdatapos
TDS_INT | column_textpos
unsigned int | column_timestamp:1
TDS_SMALLINT | column_type
| type of data, saved from wire
TDS_INT | column_usertype
TDS_CHAR * | column_varaddr
TDS_TINYINT | column_varint_size
| size of length when reading from wire (0, 1, 2 or 4)
unsigned int | column_writeable:1
struct {
TDS_INT column_size
TDS_SMALLINT column_type
| type of data, saved from wire
} | on_server
char * | table_column_name
TDS_CHAR | table_name [TDS_SYSNAME_SIZE]
TDS_SMALLINT | table_namelen

## Detailed Description

Metadata about columns in regular and compute rows.

## Member Data Documentation

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 does not have a length prefix, set prefixlen to 0. Currently not very used in code, however do not remove.

TDS_INT tds_column::column_cur_size

| size written in variable (ie: char, text, binary). -1 if NULL.

TDS_INT tds_column::column_size

| maximun size of data For fixed is the size.

TDS_SMALLINT tds_column::column_type

| 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

The documentation for this struct was generated from the following file:

- /usr/local/users/home/jklowden/projects/releases/freetds/0.82/include/tds.h