diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-11-08 22:39:43 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-11-08 22:46:29 +0200 |
commit | b1c701c90922d828a9fa4335dd36ab2588bad3a6 (patch) | |
tree | 622e5c4b87e88b592d675531613180b3137ce5d1 /src/backend | |
parent | 97c3d4853b3b095e3dadf80156a89b231f51e784 (diff) | |
download | postgresql-b1c701c90922d828a9fa4335dd36ab2588bad3a6.tar.gz postgresql-b1c701c90922d828a9fa4335dd36ab2588bad3a6.zip |
Make DatumGetInetP() unpack inet datums with a 1-byte header, and add
a new macro, DatumGetInetPP(), that does not. This brings these macros
in line with other DatumGet*P() macros.
Backpatch to 8.3, where 1-byte header varlenas were introduced.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/utils/adt/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/network.c b/src/backend/utils/adt/network.c index 80e5915b3e5..fcd1c680803 100644 --- a/src/backend/utils/adt/network.c +++ b/src/backend/utils/adt/network.c @@ -907,7 +907,7 @@ convert_network_to_scalar(Datum value, Oid typid) case INETOID: case CIDROID: { - inet *ip = DatumGetInetP(value); + inet *ip = DatumGetInetPP(value); int len; double res; int i; |