db_result_t db_tabledef_set_field ( db_tabledef_t tdef,
db_fieldno_t  nfield,
const db_fielddef_t field 
)

Set a field in a table definition.

Parameters:
tdef Table configuration.
nfield Number of field.
field Field configuration.
Returns:
On failure, one of the following error codes is set:
  • DB_EINVAL Table configuration is null.
  • DB_ERANGE Caused by: field number < 0, field number >= table fields size.

See also:
get_db_error, clear_db_error, Error Handling


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