Re: sequence... my nightmare :-(

From: Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org, Alain Roger <raf(dot)news(at)gmail(dot)com>
Subject: Re: sequence... my nightmare :-(
Date: 2008-09-27 15:59:48
Message-ID: 436279.34207.qm@web25802.mail.ukl.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> when i write the following query i get the error :ERROR:
> relation
> "accounts_id_seq" does not exist
> SET search_path = test_survey;
> insert into accounts values
> (nextval('accounts_ID_seq'),'test(at)test(dot)com','ab4ef51934f2d3f02f1a','11/19/2007
> 15:46:09');
>
> why ?
>

It's lowercasing the relation name, note "accounts_id_seq" not "accounts_ID_seq". Try double quoting it.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Mielke 2008-09-27 16:13:24 Re: PostgreSQL future ideas
Previous Message Alain Roger 2008-09-27 15:45:01 sequence... my nightmare :-(