Re: [HACKERS] Request for 7.0 JDBC status

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Request for 7.0 JDBC status
Дата
Msg-id 200005021140.HAA09209@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Request for 7.0 JDBC status  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Список pgsql-interfaces
> > Not to bug you Peter, but 7.0 may not wait three days before release.
> 
> I would vote that this is important enough that it should wait, but no
> one has raised the issue until now so we haven't discussed it. The
> docs may or may not be completed within the next day (still jet-lagged
> from vacation, but waking up at 3am does leave some extra time in the
> morning, eh?), and if they stretch an extra day which is certainly
> possible then we are only talking about an extra day for this. No big
> deal in the grand scheme of things...
> 
> Peter, is there some testing that could/should be done with the new
> driver (by others) in the meantime, or is it pretty likely to be
> reasonably hashed out?

Just to add to my earlier report, here is the kaffe 1.05 compile
failure. What strikes me as odd is that Connection.java complains
because it can't find org/postgresql/Field, but if I try to compile
Field.java complains it can't find Connection.java.

Now, having the 6.5.3 JAR file, I can compile the 6.5.3 postgresql java
driver because I have the jar file to back up the unreferenced symbols. 
The 7.0 driver uses org.postgresql, which is not in the 6.5.3 JAR file,
so it fails.

The java IRC channel says kaffe isn't very good, so maybe I shouldn't be
worried about it.  They also said mutually-referencing java files are
not a good either.

Seems I may be able to modify the import lines in the java file to use
the 6.5.3 JAR file to get enough files compiled to compile the rest,
then recompile the entire thing.

Using the jar file compiled with Sun java works fine.  I can connect to
the database and run my program.

---------------------------------------------------------------------------

#$ gmake jdbc2
(echo "package org.postgresql;" ;\echo "public class DriverClass {" ;\echo "public static String
connectClass=\"org.postgresql.jdbc2.Connection\";";\echo "}" \
 
) >org/postgresql/DriverClass.java
gmake[1]: Entering directory `/var/local/src/pgsql/CURRENT/pgsql/src/interfaces/jdbc'
javac -g org/postgresql/DriverClass.java
javac -g org/postgresql/Connection.java
org/postgresql/Connection.java:1: Can''t find class "org/postgresql/Field" �8
org/postgresql/Connection.java:529: Can''t find class "Fastpath" �8
gmake[1]: *** [org/postgresql/Connection.class] Error 1
gmake[1]: Leaving directory `/var/local/src/pgsql/CURRENT/pgsql/src/interfaces/jdbc'
gmake: *** [jdbc2] Error 2


--  Bruce Momjian                        |  http://www.op.net/~candle 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,
Pennsylvania19026
 


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

Предыдущее
От: Peter Mount
Дата:
Сообщение: RE: [HACKERS] Request for 7.0 JDBC status
Следующее
От: Peter Mount
Дата:
Сообщение: RE: [HACKERS] Request for 7.0 JDBC status