Re: problem with insertion of serial id

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem with insertion of serial id
Дата
Msg-id 7966.1029004933@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problem with insertion of serial id  (Michael Zouroudis <mzouroudis@idealcorp.com>)
Список pgsql-admin
Michael Zouroudis <mzouroudis@idealcorp.com> writes:
> when i run this i get a parse error at or near "assets_asset_id_seq".

You need to double those quote marks, viz
    ... currval(''mom_mom_id_seq'') ...

Or you can backslash 'em (\').  The point is that the function body
begins life as a string literal, and so you have to get it through the
string-literal parser.

            regards, tom lane

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

Предыдущее
От: Michael Zouroudis
Дата:
Сообщение: problem with insertion of serial id
Следующее
От: Brian McCane
Дата:
Сообщение: Re: Postgres performance slowly gets worse over a month