Re: [HACKERS] bit type external representation

2002-07-16 Thread Thomas Lockhart
1) the SQL standard says what hex values should be translated to in binary, which implies that all values may be *output* in binary format. So the standard says both represent a fixed-length bit string data type. ISTM that we should not try to preserve any information on the units used for

Re: [HACKERS] bit type external representation

2002-07-16 Thread Peter Eisentraut
Thomas Lockhart writes: SQL9x defines bit string constants with a format like B'101010' and X'ABCD' 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

[HACKERS] bit type external representation

2002-07-15 Thread Thomas Lockhart
SQL9x defines bit string constants with a format like B'101010' and X'ABCD' 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

Re: [HACKERS] bit type external representation

2002-07-15 Thread Thomas Lockhart
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

Re: [HACKERS] bit type external representation

2002-07-15 Thread Christopher Kings-Lynne
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