Bug in Sequences [6.4.2]

From: Stefan Wehner <wehner(at)digital-security(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Bug in Sequences [6.4.2]
Date: 1999-03-10 18:13:41
Message-ID: 36E6B655.936D2D4B@digital-security.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Wim Ceulemans 1999-03-10 19:49:46 Is it possible to change a columns name
Previous Message Maerten Gaetan 1999-03-10 13:45:48