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