42 if (ret_code !=
DB_OK)
62 const char *column_name)
72 tbl = strchr(table_name,
'.');
78 sprintf(buf,
"%s_%s", tbl, column_name);
int db_create_index2(dbDriver *driver, const char *table_name, const char *column_name)
Create unique index.
int db_create_index(dbDriver *driver, dbIndex *index)
Create index.
#define DB_PROC_CREATE_INDEX
int db_set_index_name(dbIndex *, const char *)
Set index name.
void db_init_index(dbIndex *)
Initialize dbIndex.
int db_set_index_table_name(dbIndex *, const char *)
Set table name.
int db_set_index_column_name(dbIndex *, int, const char *)
Set column name.
void db__set_protocol_fds(FILE *, FILE *)
?
void db_free_index(dbIndex *)
Free allocated dbIndex.
int db_set_index_type_unique(dbIndex *)
Set index type to unique.
int db_alloc_index_columns(dbIndex *, int)
Allocate index columns.
#define DB_RECV_STRING(x)
#define DB_START_PROCEDURE_CALL(x)
#define DB_RECV_RETURN_CODE(x)