Closed konradh closed 11 months ago
sweet, thanks, yeah i've actually been slowly starting the process of moving from just pure strings with the boring to!string conversion over to sending the binary data for certain datatypes (That's the idea behind DatabaseDatum instead of plain string) but ive had so many other things to do it has been taking forever to get around to it
Sqlite is able to store 64 bit floating-point values, but the arsd.sqlite diver does not support this.
This adds support for values of type double when binding values to a query. Prior to this, doubles would be converted to a string and only be stored with 6 digits of precision in the database.
Additionally, floats stored in the database were converted to strings when retrieved and therefore be reduced to 6 digits of precision, too. This behavior is now fixed for floats and doubles.
This unittest checks that doubles now work as expected.