Re: NEXTVAL function Bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: NEXTVAL function Bug
Дата
Msg-id 7538.977932372@sss.pgh.pa.us
обсуждение исходный текст
Ответ на NEXTVAL function Bug  ("Dan Wilson" <phpPgAdmin@acucore.com>)
Список pgsql-general
"Dan Wilson" <phpPgAdmin@acucore.com> writes:
> test_db=# insert into "mixed_Case" (mix_id, mix_var) values
> (nextval('mixed_Case_mix_id_seq'), 'not working');
> ERROR:  Relation 'mixed_case_mix_id_seq' does not exist


You need to do it like this:
    nextval('"mixed_Case_mix_id_seq"')

IMHO it's only a historical artifact that nextval wants a quoted name
at all.  The syntax should have been something like nextval(seqname) or
seqname.nextval, with no string literal.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SSL
Следующее
От: "Tim Barnard"
Дата:
Сообщение: RE: PQsetnonblocking