Thread

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

    PostgreSQL Bugs List <pgsql-bugs@postgresql.org> — 2001-03-28T01:11:14Z

    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 expression statement.
        [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