Content-Length: 284357 | pFad | http://github.com/postgrespro/postgres/commit/15e46fd1dd77d908d73c48d601694a6809d18976
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d212ba commit 15e46fdCopy full SHA for 15e46fd
src/backend/utils/adt/rowtypes.c
@@ -1464,9 +1464,8 @@ record_image_cmp(PG_FUNCTION_ARGS)
1464
}
1465
else if (tupdesc1->attrs[i1]->attbyval)
1466
{
1467
- cmpresult = memcmp(&(values1[i1]),
1468
- &(values2[i2]),
1469
- tupdesc1->attrs[i1]->attlen);
+ if (values1[i1] != values2[i2])
+ cmpresult = (values1[i1] < values2[i2]) ? -1 : 1;
1470
1471
else
1472
@@ -1695,9 +1694,7 @@ record_image_eq(PG_FUNCTION_ARGS)
1695
1694
1696
1697
1698
- result = (memcmp(&(values1[i1]),
1699
1700
- tupdesc1->attrs[i1]->attlen) == 0);
+ result = (values1[i1] == values2[i2]);
1701
1702
1703
Fetched URL: http://github.com/postgrespro/postgres/commit/15e46fd1dd77d908d73c48d601694a6809d18976
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments