Bug when special table names meet autoincrement field !!!! - Mailing list pgsql-hackers

From Constantin Teodorescu
Subject Bug when special table names meet autoincrement field !!!!
Date
Msg-id 3643050B.D005BA96@flex.ro
Whole thread Raw
List pgsql-hackers
I have discovered today an interesting bug , when creating table name
containing spaces and one of the fields are auto_increment-able.
See the example below :


showroom=> create sequence student_id;
CREATE
showroom=> create table students (id int4 default
nextval('student_id'),name text);
CREATE
showroom=> drop table students;
DROP
showroom=> create table "my students" (id int4 default
nextval('student_id'), name text);
ERROR:  my: Table does not exist.

Please CC: me directly the answer.


Constantin Teodorescu
FLEX Consulting Braila, ROMANIA


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: [HACKERS] linux libc6 & pgsql 6.4
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] PL/pgSQL a great procedural language for PostgreSQL