GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-bea8435a9e
|
DBMI Library (base) - SQL data type to C data type. More...
#include <grass/dbmi.h>
Go to the source code of this file.
Functions | |
int | db_sqltype_to_Ctype (int sqltype) |
Get C data type based on given SQL data type. More... | |
DBMI Library (base) - SQL data type to C data type.
(C) 1999-2009, 2011 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file sqlCtype.c.
int db_sqltype_to_Ctype | ( | int | sqltype | ) |
Get C data type based on given SQL data type.
sqltype | SQL data type |
Definition at line 24 of file sqlCtype.c.
References DB_C_TYPE_DATETIME, DB_C_TYPE_DOUBLE, DB_C_TYPE_INT, DB_C_TYPE_STRING, DB_DATETIME_MASK, DB_SQL_TYPE_DATE, DB_SQL_TYPE_DOUBLE_PRECISION, DB_SQL_TYPE_INTEGER, DB_SQL_TYPE_INTERVAL, DB_SQL_TYPE_REAL, DB_SQL_TYPE_SERIAL, DB_SQL_TYPE_SMALLINT, DB_SQL_TYPE_TIME, and DB_SQL_TYPE_TIMESTAMP.
Referenced by db__recv_column_default_value(), db__recv_column_value(), db__send_column_default_value(), db__send_column_value(), and db_convert_value_to_string().