Open brubbel opened 7 years ago
You can make a patch if you want, but this field is only for looking at the database from another tool. In fact it is really only there for debugging purposes. UA server will always restore the binary from SQL which does not lose accuracy.
Also if you are working on SQLite history feel free to clean up the code. There is some duplication that could be done better. It would make Scrutinizer happy. :)
Ok, I'll test it for some period and submit a patch.
Hi, In save_node_value() (linked here), the value of the data written to SQL is converted to a string as follows:
str(datavalue.Value.Value)
However, this results in a reduced accuracy for floats (although this value is only for human reading) e.g.The correct way would be:
More info: