Ethernet MAC addresses (macaddr type) are not compared correctly for

Bruce Momjian <bruce@momjian.us>

Commit: d033e17530e106fbe9de918cb5ddee17a2ab60ec
Author: Bruce Momjian <bruce@momjian.us>
Date: 1999-12-16T01:30:49Z
Releases: 7.1.1
Ethernet MAC addresses (macaddr type) are not compared correctly for
equality.  The lobits macro is wrong and extracts the wrong set of
bits out of the structure.

To exhibit the problem:

select '000000:000000'::macaddr = '000000:110000'::macaddr ;
?column?
--------
t
(1 row)

Daniel Boyd

Files

PathChange+/−
src/backend/utils/adt/mac.c modified +2 −2