From: | Dave Cramer <Dave(at)micro-automation(dot)net> |
---|---|
To: | first last <prelude_2_murder(at)yahoo(dot)co(dot)uk> |
Cc: | Barry Lind <blind(at)xythos(dot)com>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Problems with getLastOID |
Date: | 2003-02-21 11:49:48 |
Message-ID: | 1045828187.1136.26.camel@inspiron.cramers |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Gabriel,
You are doing it correctly, don't import org.posgtresql into your
source. Just cast the statement to org.postgresql.PGStatement as
java.sql.Statement does not specify this method. This is a postgres
specific extension.
Loading the driver is correct too!
Dave
On Fri, 2003-02-21 at 05:38, first last wrote:
> I am running the Java 2 PostgreSQL 7.2.x driver, downloaded from
> jdbc.postgresql.org.
>
> The code is the example code that comes with the Debian libpgjava
> package (JDBC driver), which I use to test when I install (the last
> time it was a long time ago, with 7.1).
>
> I am not importing anything from org.porstgresql, maybe that is the
> reason, but I am importing java.sql. If I try to import
> org.porstgresql.org it clashes in Statement and Connection.
>
> For what I can see the Statement version in java.sql does not have all
> the methods that the one in org.postgresql has, that is where I get the
> errors.
>
> I will just keep on using the whole path when I need to.
>
> What should I import to get the driver going? I thought that just using
> the class.forName ("org.postgresql.Driver") would do it (at least it
> worked all the other times I have used it, maybe I have been lucky).
>
> Thanks for your help :)
>
> Gabriel
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
--
Dave Cramer <Dave(at)micro-automation(dot)net>
From | Date | Subject | |
---|---|---|---|
Next Message | Paul Guermonprez | 2003-02-21 16:38:58 | connect with a tunnel JSSE ? |
Previous Message | first last | 2003-02-21 10:38:55 | Re: Problems with getLastOID |