Re: JDBC Update question (quoted strings)

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: JDBC Update question (quoted strings)
Дата
Msg-id 41354344.9010702@opencloud.com
обсуждение исходный текст
Ответ на JDBC Update question (quoted strings)  (Gerry Gattis <GGattis@iTeamOne.com>)
Список pgsql-jdbc
Gerry Gattis wrote:
> I had to make an unexpected adjustment in a query string in order to
> insert a record into a table.  I was would like to know if anyone has a
> remedy for this.  Here is a short description.
>
> String strInsert = "insert into myTable (lastName) values (?)";
> PreparedStatement stm = conn.prepareCall(strInsert);
> stm.setString(1, "Smith");
> // OK so far
> stm.execute();
> //fails with an error message attribute Smith not found

That sounds like a bug. What driver version are you using?

-O

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

Предыдущее
От: "David Wall"
Дата:
Сообщение: Re: JDBC Update question (quoted strings)
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: JDBC Update question (quoted strings)