pgsql: Cast integers to floats, when floats are desired.

parent 5e560a63
......@@ -1515,7 +1515,7 @@ class Result {
else {
int w = dtoid[i] == FLOAT4OID ? 4 : 8;
plugbuffer->add_int32(w)
->sprintf(w == 4 ? "%4F" : "%8F", value);
->sprintf(w == 4 ? "%4F" : "%8F", (float)value);
}
break;
case INT8OID:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment