Zero  0.1.0
Classes | Macros | Enumerations
field.h File Reference

: Description and current value of a field (column) More...

#include "util/decimal.h"
#include "file_desc.h"

Go to the source code of this file.

Classes

class  timestamp_t
 
class  field_desc_t
 
struct  field_value_t
 
union  field_value_t::s_field_value_t
 

Macros

#define MAX_LINE_LENGTH   1024
 

Enumerations

enum  sqltype_t {
  SQL_BIT, SQL_SMALLINT, SQL_INT, SQL_FLOAT,
  SQL_LONG, SQL_CHAR, SQL_FIXCHAR, SQL_VARCHAR,
  SQL_TIME, SQL_NUMERIC, SQL_SNUMERIC
}
 

Detailed Description

: Description and current value of a field (column)

Note
: field_desc_t - the description of a field field_value_t - the value of a field

The description of the field includes type, size, and whether it allows null values. The value of the field is stored in a union. If the type is SQL_TIME or strings, the data is stored in _data and the union contains the pointer to it. The space of _data is allocated at setup time for fixed length fields and at set_value time for variable length fields.

Author
: Ippokratis Pandis, January 2008

Macro Definition Documentation

§ MAX_LINE_LENGTH

#define MAX_LINE_LENGTH   1024

Enumeration Type Documentation

§ sqltype_t

enum sqltype_t
Enumerator
SQL_BIT 
SQL_SMALLINT 
SQL_INT 
SQL_FLOAT 
SQL_LONG 
SQL_CHAR 
SQL_FIXCHAR 
SQL_VARCHAR 
SQL_TIME 
SQL_NUMERIC 
SQL_SNUMERIC