Re: BUG #8191: Wrong bit conversion

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8191: Wrong bit conversion
Date: 2013-06-01 00:29:31
Message-ID: 51A9406B.9040908@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 5/31/2013 4:29 PM, Gerald Luger wrote:
> Shouldn't I expect all results to be 000...0001?
>
> Otherwise it would be
> 1 != 1?

SQL's BIT type is big endian, a hangover from its IBM mainframe heritage.

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Gavin Flower 2013-06-01 01:01:05 Re: BUG #8191: Wrong bit conversion
Previous Message Gerald Luger 2013-05-31 23:29:56 Re: BUG #8191: Wrong bit conversion