Re: Explicit typing of numeric types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Alaric B(dot) Snell" <abs(at)frontwire(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Explicit typing of numeric types
Date: 2002-01-15 15:36:20
Message-ID: 24847.1011108980@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

"Alaric B. Snell" <abs(at)frontwire(dot)com> writes:
> After a painful experience with int8 indices not being used for:
> SELECT * FROM foo WHERE id = 1;
> ...since 1 is an int4 not an int8, I'm wondering if there would be
> anything wrong with making the JDBC driver always put out explicit type
> declarations?

(a) How would JDBC know what to do better than the backend does?
What happens when (not if) JDBC puts out an inappropriate coercion?

(b) This is an acknowledged shortcoming that will be fixed someday.
I don't think it's appropriate to try to put temporary band-aids for
backend shortcomings in frontend drivers. Surely the folks working on
JDBC have their own set of shortcomings to work on...

regards, tom lane

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2002-01-15 15:57:03 Re: Explicit typing of numeric types
Previous Message Vianen, Jeroen van 2002-01-15 13:47:25 Re: Problem with getImportedKeys / getExportedKeys