diff options
author | Pavan Deolasee | 2017-06-15 07:41:07 +0000 |
---|---|---|
committer | Pavan Deolasee | 2017-06-15 07:41:07 +0000 |
commit | 0ffa504a17f58f2bc045b0039f40e4917ee50d20 (patch) | |
tree | c629c449bcfcc45de1d03b2586e89932d546e8ba /src/include/postgres.h | |
parent | 36ccc8d64e61fe9d77bb7ac62267945f7c146baa (diff) | |
parent | e800656d9a9b40b2f55afabe76354ab6d93353b3 (diff) |
Merge 'remotes/PGSQL/master' into xl10devel
Merge upstream master branch upto e800656d9a9b40b2f55afabe76354ab6d93353b3.
Code compiles and regression works ok (with lots and lots of failures though).
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r-- | src/include/postgres.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h index 87df7844f4..7426a253d2 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -689,7 +689,7 @@ DatumGetFloat4(Datum X) float4 retval; } myunion; - myunion.value = GET_4_BYTES(X); + myunion.value = DatumGetInt32(X); return myunion.retval; } #else @@ -714,7 +714,7 @@ Float4GetDatum(float4 X) } myunion; myunion.value = X; - return SET_4_BYTES(myunion.retval); + return Int32GetDatum(myunion.retval); } #else extern Datum Float4GetDatum(float4 X); @@ -737,7 +737,7 @@ DatumGetFloat8(Datum X) float8 retval; } myunion; - myunion.value = GET_8_BYTES(X); + myunion.value = DatumGetInt64(X); return myunion.retval; } #else @@ -763,7 +763,7 @@ Float8GetDatum(float8 X) } myunion; myunion.value = X; - return SET_8_BYTES(myunion.retval); + return Int64GetDatum(myunion.retval); } #else extern Datum Float8GetDatum(float8 X); |