Re: [PATCHES] DatabaseMetadata patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Mark Lillywhite <mark(at)inomial(dot)com>, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [PATCHES] DatabaseMetadata patch
Date: 2001-10-24 18:02:55
Message-ID: 21620.1003946575@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Guy McArthur 2001-10-24 23:13:13 "No Suitable Driver"
Previous Message Bruce Momjian 2001-10-24 17:48:47 Re: [PATCHES] DatabaseMetadata patch