Problems with PLPGSQL

Поиск
Список
Период
Сортировка
От Alex
Тема Problems with PLPGSQL
Дата
Msg-id 3FA9CA4C.7020904@meerkatsoft.com
обсуждение исходный текст
Ответы Re: Problems with PLPGSQL  (Jason Godden <jasongodden@optushome.com.au>)
Re: Problems with PLPGSQL  (Richard Huxton <dev@archonet.com>)
Re: Problems with PLPGSQL  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-general
Hi,
I have a problem with quoting  in one of my functions:

now TIMESTAMP := ''now'';
FOR myRec IN SELECT * FROM myTable WHERE job_end + ''360 Min'' > now LOOP

I want to replace the 360 with the contents of a passed value

but for some reason I can't quote it. ... job_end + ''$1 Min'' does not
work.

Could anyone help me out here ?


On the subject:
The whole quoting in PLPGSQL seems to create many people a headache...
is there any plan to make it a bit more user friendly?

Thanks
Alx




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL v7.4 Release Candidate 1 compile errors
Следующее
От: Jason Godden
Дата:
Сообщение: Re: Problems with PLPGSQL