pg v7.1RC1: jdbc1 fails to compile

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема pg v7.1RC1: jdbc1 fails to compile
Дата
Msg-id 200103280111.f2S1BEY30452@hub.org
обсуждение исходный текст
Список pgsql-bugs
Michael Fischer v. Mollard (mfvm@epost.de) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
pg v7.1RC1: jdbc1 fails to compile

Long Description
When I was compiling  postgresql-7.1RC1 (on a debian 2.2 with a jdk118_v3 from
blackdown.org) I got the following error:

   [javac] /home/mfvm/postgresql-7.1RC1/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: Missing term.
    [javac]           if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
    [javac]                              ^
    [javac] /home/mfvm/postgresql-7.1RC1/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: Invalid
expressionstatement. 
    [javac]           if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
    [javac]                               ^
    [javac] /home/mfvm/postgresql-7.1RC1/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: ';' expected.
    [javac]           if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())

It seems as if this line does not contain valid java code. Simply using

 (result != null && ((org.postgresql.ResultSet)result).reallyResultSet())

which is a copy and paste from line 279, solves the compilation problem and seems
to be the right thing.


Sample Code


No file was uploaded with this report

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Bug about 'Foreign Key'
Следующее
От: Andriy I Pilipenko
Дата:
Сообщение: bug in PLPGSQL