Re: prepared query plan did not update

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: prepared query plan did not update
Дата
Msg-id 20080917130729.G21635@megazone.bigpanda.com
обсуждение исходный текст
Ответ на prepared query plan did not update  (Emi Lu <emilu@encs.concordia.ca>)
Ответы Re: prepared query plan did not update  (Emi Lu <emilu@encs.concordia.ca>)
Список pgsql-sql
On Wed, 17 Sep 2008, Emi Lu wrote:

> Good morning,
>
> I tried to use prepared query plan to update columns, but it did not
> update at all.
>
> PREPARE pname(varchar) AS
> UPDATE t1
> SET    col1 = false
> WHERE  col1 AND
>         col2 = '$1' ;

I don't think you want those quotes in the second part of the where
clause. I'm pretty sure that means you're comparing against the literal
string with a dollar sign and one rather than the value given at execute
time for $1.


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

Предыдущее
От: Emi Lu
Дата:
Сообщение: Re: prepared query plan did not update
Следующее
От: Emi Lu
Дата:
Сообщение: Re: prepared query plan did not update