Re: Sun J2SE 1.4 + postgresql-jdbc3-7.3.jar + Postgresql 7.2.1

From: Barry Lind <blind(at)xythos(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Sun J2SE 1.4 + postgresql-jdbc3-7.3.jar + Postgresql 7.2.1
Date: 2003-03-19 04:03:47
Message-ID: 3E77EC23.4060506@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


Joel,

The error message in this case is actually pretty good. The
getParameterMetaData() method is not implemented in the postgres jdbc
driver. I think you are the first person that has requested it. Might
I ask what you are trying to do, that requires this method?

The error message you get with jdk 1.3.1 is because this method is a new
method in java 1.4 and didn't exist in 1.3 or earlier.

thanks,
--Barry

Joel Franco Guzmán wrote:
> Hi,
>
> I'm newbie to PostgreSQL + Java + All :)
>
> All seems to run fine, but the getParameterMetaData() do not.
>
> The envinronment is:
>
> private PreparedStatement updStmt;
> String upd = "UPDATE AnswerTable SET pnformid = ?, pnuserid = ? WHERE pnanswerid = ? ";
> updStmt = connection.prepareStatement(upd);
>
> I have a function:
>
> int numParameters = updStmt.getParameterMetaData().getParameterCount();
>
> and it fails when i call it.
>
> The e.getMessage() is
>
> "This method is not yet implemented."
>
> when i run it with java version "1.4.1_01".
>
> With java version "1.3.1_07" i just get "NoSuchMethodError".
>
> Plz, can anyone help me or indicate what could be wrong?
>
> Regards,
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2003-03-19 04:05:34 Re: WARNING on setAutoCommit
Previous Message Adrian Klaver 2003-03-19 03:59:36 Follow-up OpenOffice and Postgres 7.3.2