db_result_t db_tabledef_set_index ( db_tabledef_t tdef,
db_len_t  nindex,
const db_indexdef_t idef 
)

Set an index in a table definition.

Parameters:
tdef Table configuration.
nindex Number of index to set.
idef Index configuration.
Returns:
On failure, one of the following error codes is set:
  • DB_EINVAL Caused by: Table configuration is null, index configuration is null.
  • DB_ERANGE Caused by: number of index is <0, number of indexe >= table configuration's number of indexes.

See also:
get_db_error, clear_db_error, Error Handling


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