42 sscanf(Cstring,
"%d", &i);
47 sscanf(Cstring,
"%lf", &d);
53 db_error(
_(
"db_convert_Cstring_to_value(): unrecognized sqltype"));
93 _(
"db_convert_value_into_string(): unrecongized sqltype-type"));
#define DB_C_TYPE_DATETIME
int db_test_value_isnull(dbValue *)
Check of value is null.
const char * db_get_value_string(dbValue *)
Get string value.
double db_get_value_double(dbValue *)
Get double precision value.
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.
int db_convert_value_datetime_into_string(dbValue *, int, dbString *)
Convert datetime value into string.
void db_set_value_double(dbValue *, double)
Set double precision value.
int db_convert_Cstring_to_value_datetime(const char *, int, dbValue *)
Convert datetime string to value.
void db_set_value_int(dbValue *, int)
Set integer value.
int db_set_string(dbString *, const char *)
Inserts string to dbString (enlarge string)
int db_get_value_int(dbValue *)
Get integer value.
void db_error(const char *)
Report error message.
void G_trim_decimal(char *)
Removes trailing zeros from decimal number.
int db_convert_value_to_string(dbValue *value, int sqltype, dbString *string)
Convert value to string.
int db_convert_Cstring_to_value(const char *Cstring, int sqltype, dbValue *value)
Convert string to value.