Re: "no value found for parameter 1" error for query with no parameters
В списке pgsql-general по дате отправления:
| От | Joshua D. Drake |
|---|---|
| Тема | Re: "no value found for parameter 1" error for query with no parameters |
| Дата | |
| Msg-id | 45CFCE87.2030204@commandprompt.com обсуждение исходный текст |
| Ответ на | Re: "no value found for parameter 1" error for query with no parameters (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-general |
Peter Eisentraut wrote:
> Phil Endecott wrote:
>> I converted the first query like this:
>>
>> create or replace temporary view u_messages as
>> select * from messsages where owner=$1;
>
> What makes you think this should work?
Phil,
You would do this:
create view u_messages as select * from messages;
Then when you what to change the owner:
select * from u_messages where owner = 'value';
Sincerely,
Joshua D. Drake
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера