Jdbc4ResultSet getClob and getBlob are calling getLong internally

Поиск
Список
Период
Сортировка
От Nedim Cholich
Тема Jdbc4ResultSet getClob and getBlob are calling getLong internally
Дата
Msg-id 2f8a6c901002011053w4ec6425bodb502c67d4e2b2dc@mail.gmail.com
обсуждение исходный текст
Ответы Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Server 8.4 on Ubuntu
Driver type 4 version 8.4-701

After getting 'org.postgresql.util.PSQLException: Bad value for type
long' I found these two methods in Jdbc4ResultSet:

    public java.sql.Clob getClob(int i) throws SQLException
    {
        checkResultSet(i);
        if (wasNullFlag)
            return null;

        return new Jdbc4Clob(connection, getLong(i));
    }

    public java.sql.Blob getBlob(int i) throws SQLException
    {
        checkResultSet(i);
        if (wasNullFlag)
            return null;

        return new Jdbc4Blob(connection, getLong(i));
    }

Calling getLong here has to be wrong?

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Lew
Дата:
Сообщение: Re: driver initialization and connection separation
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally