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