Fixes:

Marc G. Fournier <scrappy@hub.org>

Commit: 59f29714aa8d084bdb3f96b87ee03775d7e2b865
Author: Marc G. Fournier <scrappy@hub.org>
Date: 1996-08-13T01:29:34Z
Releases: 7.1.1
Fixes:

This patch forces postgres95 to assume any floating-point value is a
float8.  It removes the requirement that you cast all floating-point
constants to float8.

We can remove alot of casts in the regression test after we are sure
this works.

If I have missed anything, would someone let me know.  I have tested
inserts of floating-point values into float8 fields, and it worked well.
Casting the number to float4 showed the same precision loss as previous
uncast values showed.

Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>

Files

PathChange+/−
src/backend/parser/gram.y modified +2 −2
src/backend/parser/parse_query.c modified +5 −5