CVS compile problem
CVS compile problem
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
I am seeing the following error from Array.java. Any idea?
FYI, I had applied the V3 array patch to the wrong directory. The
current CVS has the proper version and that is where this error is
coming from.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
/usr/local/bin/ant -buildfile ./build.xml all \
-Dmajor=7 -Dminor=2 -Dfullversion=7.2devel -Ddef_pgport=5432
Buildfile: ./build.xml
all:
prepare:
check_versions:
driver:
[echo] Configured build for the JDBC2 edition driver
compile:
[javac] Compiling 1 source file to /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/build
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:172: Wrong number of arguments in method.
[javac] return Field.getSQLType( getBaseTypeName() );
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:176: Method getTypeName() not found in class org.postgresql.Field.
[javac] String fType = field.getTypeName();
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:198: Wrong number of arguments in method.
[javac] fields[0] = new Field(conn, "INDEX", field.getOID("int2"), 2);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:203: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("bool"), 1);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:211: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("int2"), 2);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:215: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("int4"), 4);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:225: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("int8"), 8);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:235: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("numeric"), -1);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:245: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("float4"), 4);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:255: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("float8"), 8);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:264: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("char"), 1);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:268: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("varchar"), -1);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:278: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("date"), 4);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:288: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("time"), 8);
[javac] ^
[javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:298: Wrong number of arguments in method.
[javac] fields[1] = new Field(conn, "VALUE", field.getOID("timestamp"), 8);
[javac] ^
[javac] 15 errors
BUILD FAILED
/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/./build.xml:72: Compile failed, messages should have been provided.
Total time: 4 seconds
gmake: *** [all] Error 1
Re: CVS compile problem
От:
Rene Pijlman <rpijlman@wanadoo.nl>
Дата:
On Fri, 24 Aug 2001 21:43:59 -0400 (EDT), you wrote: >I am seeing the following error from Array.java. Any idea? I've briefly looked at it and all these errors are caused by org/postgresql/jdbc2/Array.java calling methods in org/postgresql/Field.java which are not there. This is related to the patch that Barry Lind posted last wednesday: "This patch moves the logic that looks up TypeOid, PGTypeName, and SQLTypeName from Field to Connection." It seems that his patch for ./src/interfaces/jdbc/org/postgresql/jdbc2/Array.java has not been applied, ... >FYI, I had applied the V3 array patch to the wrong directory. >The current CVS has the proper version and that is where this >error is coming from. ... or has perhaps been overwritten by a re-apply of an older patch. Regards, René Pijlman
Re: CVS compile problem
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
> On Fri, 24 Aug 2001 21:43:59 -0400 (EDT), you wrote: > >I am seeing the following error from Array.java. Any idea? > > I've briefly looked at it and all these errors are caused by > org/postgresql/jdbc2/Array.java calling methods in > org/postgresql/Field.java which are not there. > > This is related to the patch that Barry Lind posted last > wednesday: "This patch moves the logic that looks up TypeOid, > PGTypeName, and SQLTypeName from Field to Connection." > > It seems that his patch for > ./src/interfaces/jdbc/org/postgresql/jdbc2/Array.java has not > been applied, ... > > >FYI, I had applied the V3 array patch to the wrong directory. > >The current CVS has the proper version and that is where this > >error is coming from. > > ... or has perhaps been overwritten by a re-apply of an older > patch. Bingo! I grabbed the CVS version of Barry's patch and applied it over the new version. Compiles fine now. Thanks. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026