Skip to content
Snippets Groups Projects
Commit 795e0375 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

pgsql: Reduce float decimal precision to the real minimum.

parent 3ba5f987
No related branches found
No related tags found
No related merge requests found
......@@ -876,7 +876,7 @@ class sql_result {
} else {
[ value ] = cr->sscanf(collen == 4 ? "%4F" : "%8F");
if (alltext)
value = sprintf("%.*g", collen == 4 ? 10 : 20, value);
value = sprintf("%.*g", collen == 4 ? 8 : 17, value);
break;
}
default:value = cr->read(collen);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment