Incorrect (?) escape of the $1

Поиск
Список
Период
Сортировка
От andrew@pillette.com
Тема Incorrect (?) escape of the $1
Дата
Msg-id 200312221913.hBMJDt129684@pillette.com
обсуждение исходный текст
Ответы Re: Incorrect (?) escape of the $1
Список pgsql-novice
Is there any magic sequence of quotes or backslashes that will get the following (simplified version) to do the obvious
thing?

CREATE FUNCTION doesnt_work(integer) RETURNS date LANGUAGE SQL AS
'SELECT (date ''epoch'' + interval '' $1 day'')::date ' STRICT IMMUTABLE;

No variable interpolation is performed; the interval 1 day is always used.

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

Предыдущее
От: "Matthew Rudolph"
Дата:
Сообщение: INDEX and NULL
Следующее
От: darbinj@npd.hcltech.com
Дата:
Сообщение: Installing PostgreSQL on Windowns 2000