jdbc ResultSetMetaData::isWritable()

Поиск
Список
Период
Сортировка
От Ian Wehrman
Тема jdbc ResultSetMetaData::isWritable()
Дата
Msg-id 20010830213455.A13100@labfire.com
обсуждение исходный текст
Список pgsql-interfaces
hello,
i think there's a simple error in the "isWritable" method of the
ResultSetMetaData class in the jdbc2 postgresql driver. the isWritable method
looks like this:

public boolean isWritable(int column) throws SQLException
{if (isReadOnly(column))    return true;else    return false;
}

and isReadOnly looks like this:

public boolean isReadOnly(int column) throws SQLException
{return false;
}

hence, isWritable() will always return false. this is something of a problem
:) just switch the booleans in isReadOnly and everything should work just
fine. i have verified this in the 7.1.3 source, and it appears to work the
same way in at least 7.1.2 as well.

let me know if i can provide further information.

thanks,
ian wehrman

-- 
Labfire, Inc.
Seamless Technical Solutions
http://labfire.com/


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

Предыдущее
От: "Billy G. Allie"
Дата:
Сообщение: pyPgSQL - Version 1.5.1 is released.
Следующее
От: "Ligia Pimentel"
Дата:
Сообщение: Documentation on ECPG