28 return (value->
isNull != 0);
106 return (value->
t.
year);
130 return (value->
t.
day);
142 return (value->
t.
hour);
233 value->
t.
year = year;
269 value->
t.
hour = hour;
378 for (i = 0; i < arr->
n_values; i++) {
int db_test_value_isnull(dbValue *value)
Check of value is null.
int db_CatValArray_realloc(dbCatValArray *arr, int n)
Realloc dbCatValArray.
void db_set_value_year(dbValue *value, int year)
Set year value.
int db_get_value_day(dbValue *value)
Get day value.
void db_set_value_int(dbValue *value, int i)
Set integer value.
int db_get_value_month(dbValue *value)
Get month value.
void db_set_value_null(dbValue *value)
Set value to null.
void db_set_value_month(dbValue *value, int month)
Set month value.
int db_test_value_datetime_current(dbValue *value)
Check if datatime is current.
char * db_get_string(const dbString *)
Get string.
#define DB_C_TYPE_DATETIME
int db_get_value_minute(dbValue *value)
Get minute value.
int db_copy_string(dbString *, const dbString *)
Copy dbString.
void G_free(void *)
Free allocated memory.
void db_set_value_seconds(dbValue *value, double seconds)
Set seconds value.
void db_CatValArray_free(dbCatValArray *arr)
Free allocated dbCatValArray.
void db_free(void *)
Free allocated memory.
int db_CatValArray_alloc(dbCatValArray *arr, int n)
Allocate dbCatValArray.
int db_set_string(dbString *, const char *)
Inserts string to dbString (enlarge string)
void db_set_value_double(dbValue *value, double d)
Set double precision value.
void db_set_value_day(dbValue *value, int day)
Set day value.
double db_get_value_double(dbValue *value)
Get double precision value.
double db_get_value_seconds(dbValue *value)
Get seconds value.
void db_set_value_minute(dbValue *value, int minute)
Set minute value.
void db_set_value_not_null(dbValue *value)
Set value to not null.
void db_set_value_datetime_not_current(dbValue *value)
Set value to non-current.
int db_get_value_hour(dbValue *value)
Get hour value.
void db_CatValArray_init(dbCatValArray *arr)
Initialize dbCatValArray.
int db_get_value_year(dbValue *value)
Get year value.
int db_set_value_string(dbValue *value, const char *s)
Set string value.
int db_get_value_int(dbValue *value)
Get integer value.
double db_get_value_as_double(dbValue *value, int ctype)
Get value as double.
void db_set_value_hour(dbValue *value, int hour)
Set hour value.
void db_set_value_datetime_current(dbValue *value)
Set datetime to current.
const char * db_get_value_string(dbValue *value)
Get string value.
void db_free_string(dbString *)
Free allocated space for dbString.
void db_copy_value(dbValue *dst, dbValue *src)
Copy value.