Hi Greg,
your SQL syntax is simply dirty.
short recall:
- double quotes (") are for delimiting table or column names
- text constants require instead to be delimited by single quotes (')
you are simply required to rewrite your query the clean way:
SELECT printf('%.1f', 3.14159265358979323846);
> I get a valid response of 3.1 when running the query from sqlite3
> version 3.37.2 from CMD.
>
earlier versions of SQLite where unable to distinguish between
single and double quotes, but recent versions have finally
corrected this embarrassing defect.
however the more stringent check depends on a specific
compile-time option, so it could well be that sqlite
tools of different distributions behave differently.
respecting the syntax rules about single and double quoting
is the most effective way to avoid unexpacted surprises.
bye Sandro