Re: JDBC driver compilation error

Поиск
Список
Период
Сортировка
От Arun Desai
Тема Re: JDBC driver compilation error
Дата
Msg-id 010a01c34c73$a6796730$0f6b3fca@arun
обсуждение исходный текст
Ответ на Prepared Statements  (Julien Le Goff <julien.legoff@laposte.net>)
Список pgsql-jdbc
Yes I am using JDK 1.3.1. Can I comment out something in the jdbc driver
source to make it compile on JDK 1.3.1. Migrating to JDK1.4 could have some
repercussions on our existing application.
Please let me know how to compile the same sucessfully using jdk1.3.1.


Thanks,
Arun Desai.

----- Original Message -----
From: "Kim Ho" <kho@redhat.com>
To: "Arun Desai" <Arundesai@kinera.com>
Cc: "pgsql-jdbc-list" <pgsql-jdbc@postgresql.org>; "Barry Lind"
<blind@xythos.com>
Sent: Thursday, July 17, 2003 6:35 PM
Subject: Re: [JDBC] JDBC driver compilation error


> You are running jdk 1.3.1?
>
> Try upgrading to 1.4.1 if possible.
>
> Cheers,
>
> Kim
>
> On Thu, 2003-07-17 at 09:16, Arun Desai wrote:
> > Hi,
> >      I am using Postgresql 7.3.3 version. I have a Java application that
talks to the database using JDBC. I wanted to use CallableStatement for
functions that return refcursor. Since 7.3.3 jdbc driver does not support
this feature (ofcourse I know it supports CallableStatement but not for
invoking functions that return Refcursor), I had to get the latest JDBC
sources from the CVS web and compile the driver. I am getting the following
compilation errors. Can anyone please let me know how to get rid off them?
> >
> >
> > [javac] symbol  : method getOffset  (long)
> >     [javac] location: class java.util.TimeZone
> >     [javac]                     localoffset =
java.util.Calendar.getInstance().getTimeZone().getOffset(millis);
> >     [javac]
^
> >     [javac]
/root/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc
1Statement.java:2104: cannot resolve
> > symbol
> >     [javac] symbol  : method getOffset  (long)
> >     [javac] location: class java.util.TimeZone
> >     [javac]                     localoffset =
java.util.Calendar.getInstance().getTimeZone().getOffset(millis);
> >     [javac]
^
> >     [javac]
/root/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc
1Statement.java:2149: cannot resolve
> > symbol
> >     [javac] symbol  : method getOffset  (long)
> >     [javac] location: class java.util.TimeZone
> >     [javac]                     localoffset =
java.util.Calendar.getInstance().getTimeZone().getOffset(millis);
> >     [javac]
^
> >     [javac] Note: Some input files use or override a deprecated API.
> >     [javac] Note: Recompile with -deprecation for details.
> >     [javac] 3 errors
> >
> >
> >
> >
> > Thanks and Regards,
> > Arun Desai.
> >
>


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

Предыдущее
От: Kim Ho
Дата:
Сообщение: Fix for using JDK1.2 instead of JDK1.4 method in date/time/timestampToString
Следующее
От: Dmitry Tkach
Дата:
Сообщение: Re: Prepared Statements