int db::FieldDescSet::add_field ( const NameChar *  field_name,
FieldTypeTag  field_type,
int  size,
int  precision,
bool  nullable 
)

Generic function to add a field.

If the desired data type for the field is known at compile-time, use a type-specific add function instead.

See also:
add_currency, add_date, add_float, add_sint, add_string, add_time, add_uint, add_wstring
Parameters:
field_name Name used to identify the field.
field_type Field data type.
size For string types, maximum length. Ignored for integer types.
precision Precision of date and time types.
nullable If set to true, the field can be set to NULL when no data is available.
Returns:
  • DB_NOERROR when successful.


Copyright © 2005-2008 ITTIA®. All rights reserved.