mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user