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,
>