BUG #1561: wrong detection of number of parameters in java.sql.PreparedStatement

Поиск
Список
Период
Сортировка
От Ingolf Knopf
Тема BUG #1561: wrong detection of number of parameters in java.sql.PreparedStatement
Дата
Msg-id 20050324153137.D8C1DF0F6F@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #1561: wrong detection of number of parameters in  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      1561
Logged by:          Ingolf Knopf
Email address:      iknopf@csc-dd.de
PostgreSQL version: 8.0.1
Operating system:   JDBC
Description:        wrong detection of number of parameters in
java.sql.PreparedStatement
Details:

"java.sql.PreparedStatement.executeUpdate()" throws "java.sql.SQLException",
if the prepared sql-string contains '?' within a C-like comment.

Example:
  select relname
  from pg_class
  where /*relowner = ? and*/
    relname = ?

In this case, the java.sql.PreparedStatement of PostgreSQL requires two
parameters, but I have only one.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Olivier Thauvin"
Дата:
Сообщение: BUG #1567: can't hide password with pg_autovacuum
Следующее
От: Ron Mayer
Дата:
Сообщение: Re: BUG #1517: SQL interval syntax is accepted by the parser,