41 sscanf(Cstring,
"%d", &i);
46 sscanf(Cstring,
"%lf", &d);
52 db_error(
_(
"db_convert_Cstring_to_value(): unrecognized sqltype"));
91 db_error(
_(
"db_convert_value_into_string(): unrecongized sqltype-type"));
#define DB_C_TYPE_DATETIME
int db_get_value_int(dbValue *)
Get integer value.
int db_set_string(dbString *, const char *)
Inserts string to dbString (enlarge string)
int db_convert_value_to_string(dbValue *value, int sqltype, dbString *string)
Convert value to string.
int db_test_value_isnull(dbValue *)
Check of value is null.
int db_set_value_string(dbValue *, const char *)
Set string value.
int db_sqltype_to_Ctype(int)
Get C data type based on given SQL data type.
void db_set_value_double(dbValue *, double)
Set double precision value.
void db_error(const char *)
Report error message.
int db_convert_value_datetime_into_string(dbValue *, int, dbString *)
Convert datetime value into string.
const char * db_get_value_string(dbValue *)
Get string value.
double db_get_value_double(dbValue *)
Get double precision value.
void db_set_value_int(dbValue *, int)
Set integer value.
int db_convert_Cstring_to_value_datetime(const char *, int, dbValue *)
Convert datetime string to value.
int db_convert_Cstring_to_value(const char *Cstring, int sqltype, dbValue *value)
Convert string to value.
void G_trim_decimal(char *)
Removes trailing zeros from decimal number.