| От | Oliver Jowett |
|---|---|
| Тема | Re: exception while upgrading driver |
| Дата | |
| Msg-id | 42A615BE.9070603@opencloud.com обсуждение исходный текст |
| Ответ на | Re: exception while upgrading driver (Sathyajith G <sathyajith@inbox.com>) |
| Список | pgsql-jdbc |
Sathyajith G wrote:
> public static ResultSet getResultSet(String sql)
> {
> ResultSet rs;
> try{
> rs=stmt.executeQuery(sql);
> }catch(Exception e)
> {System.err.println("error");
> rs=null;
> }
> return rs;
> }
Where does 'stmt' come from?
Can we see a compilable testcase that shows the problem? Code fragments
really aren't too useful for this sort of problem -- we need to see
everything involved with talking to the JDBC driver. e.g. perhaps the
lifetime of your Statement is not what you think it is and it's getting
GCed unexpectedly.. but I can't say for sure without seeing the actual
code you're running.
-O
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера