]> granicus.if.org Git - postgresql/commit
Backpatch into 6.5.*.
authorBruce Momjian <bruce@momjian.us>
Thu, 23 Sep 1999 19:13:55 +0000 (19:13 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 23 Sep 1999 19:13:55 +0000 (19:13 +0000)
commitb8e2e3fb18735bd3a11967ee1cfc59b17fc13bd1
treef8601e4ee94db7ce5fca51f9a3f821860324a358
parent471881788fe4fde3c93aafe966a43644c86298b5
Backpatch into 6.5.*.

One last missing quoting bug in pg_dump:
now that sequence names are properly quoted for field defaults, mixed
case sequence names are generated. These are properly quoted in the
CREATE SEQUENCE lines, but not in the SELECT nextval lines, as per
below:

CREATE SEQUENCE "Teams_TeamID_seq" start 10 increment 1 maxvalue
2147483647 minvalue 1  cache 1 ;
SELECT nextval ('Teams_TeamID_seq');

This needs to be:
SELECT nextval ('"Teams_TeamID_seq"');

Patch included below.
--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
src/bin/pg_dump/pg_dump.c
src/pl/plpgsql/src/pl_comp.c