pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedbug with prepared statements and sql comments in 8.1-408.jdbc3
3+ messages / 3 participants
[nested] [flat]
* bug with prepared statements and sql comments in 8.1-408.jdbc3
@ 2007-06-05 11:02 mljv@planwerk6.de
2007-06-05 18:07 ` Re: bug with prepared statements and sql comments in 8.1-408.jdbc3 Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 3+ messages in thread
From: mljv@planwerk6.de @ 2007-06-05 11:02 UTC (permalink / raw)
To: pgsql-jdbc
Hi,
i am using hibernate3, postgresql 8.1 and pg-jdbc 8.1-408.jdbc3
when is set hibernate.use_sql_comments to true, hibernate sends sql comments
to the postgresql driver to ease debugging.
But the driver does not recognise the comment in respect of parameters:
Caused by: org.postgresql.util.PSQLException: Für den Parameter 2 wurde kein
Wert angegeben.
["No value for parameter 2 was specified"]
Hibernate send the following string to the driver:
/*
from
customers As cu
where
cu.name = ? */ select
[...]
from
Customer customer0_
where
customer0_.customer0_name=?
the driver doesnt see that the first "?" is inside a comment. That's my guess
from reading a very similar bug report:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-521
this one was tracked down in the oracle driver, so i guess postgresql has got
the same kind of bug.
if i can help to track down this bug, please contact me via PM.
--
kind regards,
janning
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: bug with prepared statements and sql comments in 8.1-408.jdbc3
2007-06-05 11:02 bug with prepared statements and sql comments in 8.1-408.jdbc3 mljv@planwerk6.de
@ 2007-06-05 18:07 ` Kris Jurka <books@ejurka.com>
2007-06-05 20:09 ` Re: bug with prepared statements and sql comments in 8.1-408.jdbc3 Janning Vygen <vygen@planwerk6.de>
0 siblings, 1 reply; 3+ messages in thread
From: Kris Jurka @ 2007-06-05 18:07 UTC (permalink / raw)
To: mljv@planwerk6.de; +Cc: pgsql-jdbc
On Tue, 5 Jun 2007, mljv@planwerk6.de wrote:
> i am using hibernate3, postgresql 8.1 and pg-jdbc 8.1-408.jdbc3
>
> when is set hibernate.use_sql_comments to true, hibernate sends sql comments
> to the postgresql driver to ease debugging.
>
> But the driver does not recognise the comment in respect of parameters:
>
This is a known problem with the 8.1 driver series and is fixed in the 8.2
release. It's perfectly fine to use an 8.2 driver with an earlier
database version.
Kris Jurka
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: bug with prepared statements and sql comments in 8.1-408.jdbc3
2007-06-05 11:02 bug with prepared statements and sql comments in 8.1-408.jdbc3 mljv@planwerk6.de
2007-06-05 18:07 ` Re: bug with prepared statements and sql comments in 8.1-408.jdbc3 Kris Jurka <books@ejurka.com>
@ 2007-06-05 20:09 ` Janning Vygen <vygen@planwerk6.de>
0 siblings, 0 replies; 3+ messages in thread
From: Janning Vygen @ 2007-06-05 20:09 UTC (permalink / raw)
To: pgsql-jdbc
On Tuesday 05 June 2007 20:07:40 Kris Jurka wrote:
> On Tue, 5 Jun 2007, mljv@planwerk6.de wrote:
> > i am using hibernate3, postgresql 8.1 and pg-jdbc 8.1-408.jdbc3
> >
> > when is set hibernate.use_sql_comments to true, hibernate sends sql
> > comments to the postgresql driver to ease debugging.
> >
> > But the driver does not recognise the comment in respect of parameters:
>
> This is a known problem with the 8.1 driver series and is fixed in the 8.2
> release. It's perfectly fine to use an 8.2 driver with an earlier
> database version.
thanks for your quick reply! i should have read
http://jdbc.postgresql.org/download.html thoroughly and tried 8.2 driver
before steeling your time. sorry!
kind regards,
janning
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2007-06-05 20:09 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-05 11:02 bug with prepared statements and sql comments in 8.1-408.jdbc3 mljv@planwerk6.de
2007-06-05 18:07 ` Kris Jurka <books@ejurka.com>
2007-06-05 20:09 ` Janning Vygen <vygen@planwerk6.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox