Re: Relation does not exist

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Relation does not exist
Дата
Msg-id 28991.1020830910@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Relation does not exist  (April L <april@i-netco.com>)
Список pgsql-novice
April L <april@i-netco.com> writes:
> in your queries you have to refer to it with propercase and enclose in "
> quotes
> so books_bookid_seq will cause the error
> "Books_BookID_seq" will be ok...

It's been awhile, but I think that 7.0's nextval() would take the given
string literally, while later versions follow the downcase-unless-quoted
rule that applies to names in normal query contexts.  So if you had
    nextval('Books_BookID_seq')
before, you now need
    nextval('"Books_BookID_seq"')

Or you could recreate the sequence with an all-lower-case name...

            regards, tom lane

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

Предыдущее
От: "Brian Schroeder"
Дата:
Сообщение: Re: Relation does not exist
Следующее
От: Tom Lane
Дата:
Сообщение: Re: more voodoo planner bs :)