Re: bit type external representation - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: bit type external representation
Date
Msg-id 3D338E45.A879E40C@fourpalms.org
Whole thread Raw
In response to bit type external representation  (Thomas Lockhart <lockhart@fourpalms.org>)
List pgsql-hackers
> for binary and hexadecimal representations. But at the moment we don't
> explicitly handle both of these cases as bit strings; the hex version is
> converted to decimal in the scanner (*really* early in the parsing
> stage) and then handled as an integer.
> It looks like our current bit string type support looks for a "B" or "X"
> embedded in the actual input string, rather than outside the quote as in
> the standard.

I should point out that this is probably for historical reasons; I'd
implemented the hex to decimal conversion way before we had bit string
support, and we didn't consolidate those features when bit strings came
along.
                  - Thomas


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: bit type external representation
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: bit type external representation