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>
Re: NEXTVAL function Bug Tom Lane <tgl@sss.pgh.pa.us>
"Dan Wilson"  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
FAQ