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++) {
#define DB_C_TYPE_DATETIME
int db_copy_string(dbString *, const dbString *)
Copy dbString.
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_free(void *)
Free allocated memory.
char * db_get_string(const dbString *)
Get string.
void G_free(void *)
Free allocated memory.
int db_set_value_string(dbValue *value, const char *s)
Set string value.
int db_get_value_month(dbValue *value)
Get month value.
int db_get_value_year(dbValue *value)
Get year value.
int db_get_value_int(dbValue *value)
Get integer value.
void db_set_value_day(dbValue *value, int day)
Set day value.
void db_set_value_minute(dbValue *value, int minute)
Set minute value.
void db_set_value_int(dbValue *value, int i)
Set integer value.
void db_CatValArray_init(dbCatValArray *arr)
Initialize dbCatValArray.
int db_test_value_datetime_current(dbValue *value)
Check if datatime is current.
void db_set_value_month(dbValue *value, int month)
Set month value.
int db_get_value_hour(dbValue *value)
Get hour value.
void db_set_value_double(dbValue *value, double d)
Set double precision value.
void db_set_value_datetime_not_current(dbValue *value)
Set value to non-current.
int db_CatValArray_realloc(dbCatValArray *arr, int n)
Realloc dbCatValArray.
void db_set_value_datetime_current(dbValue *value)
Set datetime to current.
void db_set_value_year(dbValue *value, int year)
Set year value.
int db_CatValArray_alloc(dbCatValArray *arr, int n)
Allocate dbCatValArray.
const char * db_get_value_string(dbValue *value)
Get string value.
void db_set_value_not_null(dbValue *value)
Set value to not null.
void db_set_value_hour(dbValue *value, int hour)
Set hour value.
void db_set_value_null(dbValue *value)
Set value to null.
void db_copy_value(dbValue *dst, dbValue *src)
Copy value.
int db_get_value_day(dbValue *value)
Get day value.
double db_get_value_double(dbValue *value)
Get double precision value.
int db_get_value_minute(dbValue *value)
Get minute value.
double db_get_value_seconds(dbValue *value)
Get seconds value.
void db_set_value_seconds(dbValue *value, double seconds)
Set seconds value.
int db_test_value_isnull(dbValue *value)
Check of value is null.
void db_CatValArray_free(dbCatValArray *arr)
Free allocated dbCatValArray.
double db_get_value_as_double(dbValue *value, int ctype)
Get value as double.