- edited description
Negative values with decimal
Issue #37
new
Hi
There seems to be an issue when converting negative values (gt > -1 and lt < 0). Here is an example , SQL result
however when I use JSON400 query I got an error due to missing '0'
the correct value is -0.9
It might help - PaseJson.c - json_output_record_name_value
char * fmt_key_val_zero_neg_dec = "\"%s\":-%s";
and
} else if (value[0] == '-' && value[1] == '.') {
value[0] = '0';
fmt_val = fmt_val_zero_dec;
fmt_key_val = fmt_key_val_zero_neg_dec;
} else {
Regards Sebastian Misiewicz
Comments (1)
-
reporter - Log in to comment