Bug with sequences in 6.4.2 - Mailing list pgsql-general

From wehner@digital-security.com (Stefan Wehner)
Subject Bug with sequences in 6.4.2
Date
Msg-id 19990311132212.EDB3815186@miraculix.shw.com
Whole thread Raw
Responses Re: [GENERAL] Bug with sequences in 6.4.2
List pgsql-general
Greetings,
there seems to be a slight bug in the parsing of the
nextval function, tested under 6.4.2.
It affects also the SERIAL type.

Symptom :

CREATE SEQUENCE "AA";
-- Correct, quoted identifier is allowed;
SELECT NEXTVAL('AA');
--Produces Error
--aa.nextval: sequence does not exist


Probable source of problem, the Argument to nextval is
not handled correctly as an Table Identifier.

E.g. nextval('"AA"') is generates
"aa".nextval: sequence does not exist

Note the lowercase between the quotes.

I quickly browsed the sources, but have not found the
place where the conversion to lowercase occurs.

Please check this against 6.5 and 6.4.3 too.

With Regards,
    Stefan Wehner



pgsql-general by date:

Previous
From: wehner@digital-security.com (Stefan Wehner)
Date:
Subject: Bug in Sequences [6.4.2]
Next
From: Tim Röstermundt
Date:
Subject: Postgres-dump with binary data!