Re: quote style in buffer

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: quote style in buffer
Дата
Msg-id 0E369B0C-54BE-11D8-AB38-000A95C88220@myrealbox.com
обсуждение исходный текст
Ответ на quote style in buffer  (joseph speigle <joe.speigle@jklh.us>)
Список pgsql-novice
Hi Joseph,

On Feb 1, 2004, at 7:40 PM, joseph speigle wrote:

> hi,
>
> I can't seem to find the comment for an sql file
>
> drop function dups();
> -- joe speigle
> -- Feb 1 2004
> CREATE FUNCTION dups() RETURNS int4
>       AS 'SELECT 1 as RESULT' LANGUAGE 'sql';

it looks like you've got at least one extra pair of single quotes: you
don't need to quote sql.

test=# CREATE OR REPLACE FUNCTION dups() RETURNS int4
test-#       AS 'SELECT 1 as RESULT' LANGUAGE SQL;
CREATE FUNCTION
test=# select * from dups();
  dups
------
     1
(1 row)

Hope that helps.

Michael Glaesemann
grzm myrealbox com


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

Предыдущее
От: joseph speigle
Дата:
Сообщение: quote style in buffer
Следующее
От: Lawrence Smith
Дата:
Сообщение: Re: Q: Reclaiming deleted space in data files