Re: [PATCHES] DatabaseMetadata patch - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: [PATCHES] DatabaseMetadata patch
Date
Msg-id 21620.1003946575@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] DatabaseMetadata patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-jdbc
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> +          tuple[8] =
> +            Integer.toString((attypmod & 0xffff) - VARHDRSZ).getBytes();

In the backend sources, we subtract VARHDRSZ *first* and then AND with FFFF.
Not sure if this will ever yield a different result, but I'd say it
should be kept consistent ...

            regards, tom lane

pgsql-jdbc by date:

Previous
From: Denis Bucher
Date:
Subject: Re: Accents bug ?
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] DatabaseMetadata patch