29 return &column->
value;
107 column->
scale = scale;
485 new->dataLen =
src->dataLen;
486 new->hasDefaultValue =
src->hasDefaultValue;
487 new->hostDataType =
src->hostDataType;
488 new->nullAllowed =
src->nullAllowed;
489 new->precision =
src->precision;
490 new->scale =
src->scale;
491 new->select =
src->select;
492 new->sqlDataType =
src->sqlDataType;
493 new->update =
src->update;
494 new->useDefaultValue =
src->useDefaultValue;
void db_set_column_update_priv_granted(dbColumn *column)
Set update privileges to be granted.
void db_set_column_null_allowed(dbColumn *column)
Set null value to be allowed.
void db_init_column(dbColumn *column)
Initialize dbColumn.
void db_set_column_host_type(dbColumn *column, int type)
Set column host data type.
int db_get_column_length(dbColumn *column)
Get column's length.
int db_set_column_name(dbColumn *column, const char *name)
Set column name.
int db_test_column_has_default_value(dbColumn *column)
Check if column has defined default value.
void db_unset_column_null_allowed(dbColumn *column)
Unset null value to be allowed.
void db_set_column_precision(dbColumn *column, int precision)
Set column precision.
void db_set_column_use_default_value(dbColumn *column)
Set default value to be used.
dbValue * db_get_column_value(dbColumn *column)
Returns column value for given column structure.
void db_set_column_has_defined_default_value(dbColumn *column)
Set default value identificator.
const char * db_get_column_name(dbColumn *column)
Returns column name for given column.
dbValue * db_get_column_default_value(dbColumn *column)
Returns column default value for given column structure.
void db_set_column_update_priv_not_granted(dbColumn *column)
Unset update privileges.
void db_set_column_has_undefined_default_value(dbColumn *column)
Unset default value identificator.
int db_set_column_description(dbColumn *column, const char *description)
Set column description.
const char * db_get_column_description(dbColumn *column)
Returns column description for given column.
int db_test_column_use_default_value(dbColumn *column)
Checks if default value is used.
void db_set_column_select_priv_not_granted(dbColumn *column)
Unset select privileges.
void db_unset_column_has_default_value(dbColumn *column)
Unset default value identificator.
int db_get_column_scale(dbColumn *column)
Get column scale.
int db_get_column_update_priv(dbColumn *column)
Get update privileges.
void db_free_column(dbColumn *column)
Frees column structure.
int db_get_column_select_priv(dbColumn *column)
Get select privileges.
void db_unset_column_use_default_value(dbColumn *column)
Unset default value to be used.
int db_get_column_sqltype(dbColumn *column)
Returns column sqltype for column.
void db_set_column_select_priv_granted(dbColumn *column)
Set select privileges to be granted.
dbColumn * db_copy_column(dbColumn *dest, dbColumn *src)
Copy a db column from source to destination.
int db_get_column_precision(dbColumn *column)
Get column precision.
void db_set_column_length(dbColumn *column, int length)
Set column's length.
int db_test_column_null_allowed(dbColumn *column)
Checks if null value is allowed.
int db_get_column_host_type(dbColumn *column)
Get column host type.
void db_set_column_sqltype(dbColumn *column, int sqltype)
Define column sqltype for column.
void db_set_column_scale(dbColumn *column, int scale)
Set column scale.
int db_test_column_has_defined_default_value(dbColumn *column)
Check if column has defined default value.
int db_test_column_has_undefined_default_value(dbColumn *column)
Check if column has defined default value.
void db_copy_value(dbValue *, dbValue *)
Copy value.
int db_copy_string(dbString *, const dbString *)
Copy dbString.
void * db_calloc(int, int)
Allocate memory.
void db_free_string(dbString *)
Free allocated space for dbString.
int db_set_string(dbString *, const char *)
Inserts string to dbString (enlarge string)
void db_zero(void *, int)
Zero allocated space.
void db_init_string(dbString *)
Initialize dbString.
char * db_get_string(const dbString *)
Get string.