Gorka Mauleon wrote:
>
> Im trying to get a connection through a JNDI service in tomcat.
[...]
> using thi driver. pg74.216.jdbc3.jar
> I get this error
> - org.postgresql.util.PSQLException: A result was returned when none was
> expected.
[...]
> PreparedStatement pstmt = con.prepareStatement(dbSessionConfig);
> pstmt.executeUpdate(); <--- Here a got the error
>
> when i used the driver manager with this driver jdbc3-postgresql.jar i
> think that i got another kind of connection and i havent got no error.
> seems that now i have a config error but i dont really know whats the
> correct way to fix it
What is in "dbSessionConfig"?
That might help answer the question.
BTW, why don't you use a more recent driver?
Yours,
Laurenz Albe