pgsql: Correctly cast the return value of a CallableStatement when

From: jurka(at)svr1(dot)postgresql(dot)org (Kris Jurka)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Correctly cast the return value of a CallableStatement when
Date: 2004-10-21 19:13:55
Message-ID: 20041021191355.ECCF732A936@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Correctly cast the return value of a CallableStatement when getShort
is called. getByte presents a can't happen situation as no function
can return a TINYINT because pg doesn't have an equivalent type.
Make this throw an exception if we get to this point.

Thanks to Christian Niles.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
pgsql/src/interfaces/jdbc/org/postgresql/jdbc1:
AbstractJdbc1Statement.java (r1.41.2.7 -> r1.41.2.8)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java.diff?r1=1.41.2.7&r2=1.41.2.8)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-10-21 19:28:36 pgsql: Standardize on using the Min, Max, and Abs macros that are in our
Previous Message User Tom 2004-10-21 17:39:39 pqa - pqa: New doc notes from Ben Walding