ResultSet internal data type handling

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: ResultSet internal data type handling
Date: 2009-05-12 07:39:07
Message-ID: 200905120939.07478.fluca1978@infinito.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Having a look at jdbc2.AsbtractJDBC2ResultSet (the parent of all ResultSets) I
discovered that all data received from the server is handled internally as a
string (right?) and is converted from the getXXX methods into the appropriate
type. This means that you can actually write a getString on a date field
obtaining a valida date (and if you are lucky you can do something the
opposite). I'm curious to know if this is an implementation choice or a jdbc
specification and why the objects are not checked against the table metadata
(as the getInternalObject method does).

Thanks,
Luca

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Scott Marlowe 2009-05-12 07:55:13 Re: Unable to access table named "user"
Previous Message Joe Kramer 2009-05-12 07:26:32 Unable to access table named "user"