1 #include <grass/dbmi.h>
12 case DB_SQL_TYPE_INTEGER:
14 case DB_SQL_TYPE_SMALLINT:
16 case DB_SQL_TYPE_REAL:
17 return DB_C_TYPE_DOUBLE;
18 case DB_SQL_TYPE_DOUBLE_PRECISION:
19 return DB_C_TYPE_DOUBLE;
20 case DB_SQL_TYPE_SERIAL:
24 switch (sqltype & ~DB_DATETIME_MASK) {
25 case DB_SQL_TYPE_DATE:
26 case DB_SQL_TYPE_TIME:
27 case DB_SQL_TYPE_TIMESTAMP:
28 case DB_SQL_TYPE_INTERVAL:
29 return DB_C_TYPE_DATETIME;
32 return DB_C_TYPE_STRING;
int db_sqltype_to_Ctype(int sqltype)