pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Mike Smialek <_ike_mialek@hotmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: case sensititvity bug in foreign keys on cygwin
Date: Tue, 04 Dec 2001 09:34:37 +0900
Message-ID: <3C0C1A1D.3EA11418@tpf.co.jp> (raw)
References: <9u8bn5$j34$1@news.tht.net>

Mike Smialek wrote:
> 
> Configuration:
>     Windows 2000 Server
>     cygwin 2.78.2.9
>     PostgreSQL 7.1.3
>     psqlODBC 7.1.8
>     pgAdmin II 1.1.66
> 
> Bug:
>     Capital letters cannot be used in column names used in foreign key
> constraints
> 
>     All Smalls succeeds:

[snip]

>     Capitalizing just the foreign column name fails with what seems to be an
> incorrect error:
>         -- Table: significance
>         CREATE TABLE "significance" (
>         "Significanceid" int4 NOT NULL,
>         "desc" varchar(255),
>         CONSTRAINT "pk_significance" PRIMARY KEY ("Significanceid"));
> 
>         -- Table: primaryword
>         CREATE TABLE "primaryword" (
>         "exerciseid" int4 NOT NULL,
>         "significanceid" int4 NOT NULL,
>         CONSTRAINT "pk_primaryword" PRIMARY KEY ("exerciseid"),
>         CONSTRAINT "fk_primaryword_significance" FOREIGN KEY
> (significanceid) REFERENCES "significance" (Significanceid) );

You aren't double quoting the column name Significanceid
in the foreign key contraint clauses. Why ?

regards,
Hiroshi Inoue



view thread (3+ messages)

Message-ID: <3C0C1A1D.3EA11418@tpf.co.jp>
Permalink:  ../3C0C1A1D.3EA11418@tpf.co.jp/
Also on:    postgresql.org/message-id/3C0C1A1D.3EA11418@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Inoue@tpf.co.jp, _ike_mialek@hotmail.com, pgsql-bugs@postgresql.org
  Subject: Re: case sensititvity bug in foreign keys on cygwin
  In-Reply-To: <3C0C1A1D.3EA11418@tpf.co.jp>
  References: <9u8bn5$j34$1@news.tht.net> <3C0C1A1D.3EA11418@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox