Explicit typing of numeric types - Mailing list pgsql-jdbc

From Alaric B. Snell
Subject Explicit typing of numeric types
Date
Msg-id Pine.LNX.4.43.0201151039550.2861-100000@calvin.frontwire.com
Whole thread Raw
Responses Re: Explicit typing of numeric types  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-jdbc
Guys,

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?

Eg, setLong emitting 1 :: int8. setString emitting 'foo' :: text. Etc.
Whaddyathink?

ABS

--
Alaric B. Snell, Developer
abs@frontwire.com


pgsql-jdbc by date:

Previous
From: Ryouichi Matsuda
Date:
Subject: Re: Failure in timestamptz of JDBC of 7.2b4
Next
From: "Vianen, Jeroen van"
Date:
Subject: Re: Problem with getImportedKeys / getExportedKeys