Bug when special table names meet autoincrement field !!!!

From: Constantin Teodorescu <teo(at)flex(dot)ro>
To: "pgsql-hackers(at)postgreSQL(dot)org" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Bug when special table names meet autoincrement field !!!!
Date: 1998-11-06 14:17:47
Message-ID: 3643050B.D005BA96@flex.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-11-06 15:01:07 Re: [HACKERS] PL/pgSQL a great procedural language for PostgreSQL
Previous Message Hannu Krosing 1998-11-06 13:45:54 Re: [HACKERS] linux libc6 & pgsql 6.4