pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2020-02-17
2020-02-17 16:14:05 by Stephen R. van den Berg <srb@cuci.nl>
47c4742cfab3a0dfe5af0dae4c606c9a69c00c3e (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Cast integers to floats, when floats are desired.
1333:
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: