valuefmt.c File Reference

#include <stdio.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/dbmi.h>

Include dependency graph for valuefmt.c:

Go to the source code of this file.

Functions

int db_convert_Cstring_to_value (char *Cstring, int sqltype, dbValue *value)
int db_convert_value_to_string (dbValue *value, int sqltype, dbString *string)


Function Documentation

int db_convert_Cstring_to_value ( char *  Cstring,
int  sqltype,
dbValue *  value 
)

Definition at line 13 of file valuefmt.c.

References db_convert_Cstring_to_value_datetime(), db_error(), db_set_value_double(), db_set_value_int(), db_set_value_string(), and db_sqltype_to_Ctype().

Referenced by db_convert_Cstring_to_column_default_value(), and db_convert_Cstring_to_column_value().

int db_convert_value_to_string ( dbValue *  value,
int  sqltype,
dbString *  string 
)

Definition at line 49 of file valuefmt.c.

References db_convert_value_datetime_into_string(), db_error(), db_get_value_double(), db_get_value_int(), db_get_value_string(), db_set_string(), db_sqltype_to_Ctype(), and db_test_value_isnull().

Referenced by db__copy_table(), db_convert_column_default_value_to_string(), and db_convert_column_value_to_string().


Generated on Fri Nov 21 11:02:02 2008 for GRASS by  doxygen 1.5.1