Обсуждение: pgsql: Correctly cast the return value of a CallableStatement when

Поиск
Список
Период
Сортировка

pgsql: Correctly cast the return value of a CallableStatement when

От
jurka@svr1.postgresql.org (Kris Jurka)
Дата:
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)