Re: [GENERAL] just little BUG

From: "Jonathan davis" <haj(at)idianet(dot)net>
To: "Bruce Momjian" <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Pgsql-General(at)Postgresql(dot) Org" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] just little BUG
Date: 1999-07-09 07:46:42
Message-ID: 000c01bec9df$3704bd20$0601a8c0@kosovo.idianet.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>[Charset iso-8859-1 unsupported, filtering to ASCII...]
>> hello all
>>
>> normaly a UNIQUE PRIMARY KEY is unique but
>> when you use a heritage, you can insert a duplicate key !!!!
>
>I assume you mean inheritance.
>
>Can you send us a little test sample please?
>
>--
hello all

this is the problem:

example:

test=> CREATE TABLE MAN(name char(10) UNIQUE PRIMARY KEY);T

test=> CREATE TABLE PROFESSOR(scool char(20))INHERITS(MAN);

test=> INSERT INTO PROFESSOR(name) VALUES('DAVIS');
INSERT 54424 1

test=> INSERT INTO PROFESSOR(name) VALUES('DAVIS');
INSERT 54425 1

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christian Rudow 1999-07-09 08:12:00 Re: [GENERAL] getting val of serial field after insert
Previous Message Jim Archer 1999-07-09 04:51:06 getting val of serial field after insert