1 #include <grass/dbmi.h>
12 case DB_SQL_TYPE_DATE:
16 case DB_SQL_TYPE_TIME:
22 if (sqltype & DB_YEAR)
24 else if (sqltype & DB_MONTH)
26 else if (sqltype & DB_DAY)
28 else if (sqltype & DB_HOUR)
30 else if (sqltype & DB_MINUTE)
32 else if (sqltype & DB_SECOND)
34 else if (sqltype & DB_FRACTION)
39 if (sqltype & DB_FRACTION)
41 else if (sqltype & DB_SECOND)
43 else if (sqltype & DB_MINUTE)
45 else if (sqltype & DB_HOUR)
47 else if (sqltype & DB_DAY)
49 else if (sqltype & DB_MONTH)
51 else if (sqltype & DB_YEAR)
void db_interval_range(int sqltype, int *from, int *to)