db_result_t db_tabledef_set_field_count ( db_tabledef_t tdef,
db_fieldno_t  nfields 
)

Set the number of fields in a table definition.

Parameters:
tdef Table configuration.
nfields Number of fields.
Returns:
On failure, one of the following error codes is set:
  • DB_EINVAL Caused by: table configuration is null, number of fields < 0.

See also:
get_db_error, clear_db_error, Error Handling


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