| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: FAQ error |
| Date: | 2001-10-11 19:46:42 |
| Message-ID: | 200110111946.f9BJkgP03220@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> Bruce Momjian writes:
>
> > Our FAQ, item 4.16.2 has:
> >
> > $newSerialID = nextval('person_id_seq');
> > INSERT INTO person (id, name) VALUES ($newSerialID, 'Blaise Pascal');
> >
> > Is this correct Perl?
>
> No. I always thought it was pseudo code. I think it's fine.
It is psaudo-code, but the assignment for nextval() is just wrong:
> > $newSerialID = nextval('person_id_seq');
I am going to flesh this out with the SELECT but not the rest.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2001-10-11 20:02:42 | Re: EXTRACT broken |
| Previous Message | Peter Eisentraut | 2001-10-11 18:34:07 | Re: FAQ error |