Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id B70352E002F for ; Wed, 11 Jun 2008 11:53:25 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66898-02 for ; Wed, 11 Jun 2008 11:53:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by developer.postgresql.org (Postfix) with ESMTP id 4F0A32E002E for ; Wed, 11 Jun 2008 11:53:19 -0300 (ADT) Received: by yx-out-2324.google.com with SMTP id 8so307037yxb.73 for ; Wed, 11 Jun 2008 07:53:18 -0700 (PDT) Received: by 10.150.52.2 with SMTP id z2mr396989ybz.48.1213195997933; Wed, 11 Jun 2008 07:53:17 -0700 (PDT) Received: by 10.150.152.11 with HTTP; Wed, 11 Jun 2008 07:53:17 -0700 (PDT) Message-ID: <937d27e10806110753m4990ecfbl7cd686ec9036640b@mail.gmail.com> Date: Wed, 11 Jun 2008 15:53:17 +0100 From: "Dave Page" To: "Greg Sabino Mullane" Subject: Re: New software catalog fails (why are we spelling it "catalogue"?) Cc: pgsql-www@postgresql.org In-Reply-To: <34153382302f195bf55fa71338367f0c@biglumber.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <34153382302f195bf55fa71338367f0c@biglumber.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/76 X-Sequence-Number: 15303 On Wed, Jun 11, 2008 at 3:45 PM, Greg Sabino Mullane wr= ote: > > > Just tried out the new "Submit Product" form and got a > SQL error: > > =3D=3D=3D > Error communicating with database: ERROR: insert or update on > table "products" violates foreign key constraint > "products_contact_fkey" DETAIL: Key (contact)=3D(Greg) is not > present in table "users". > =3D=3D=3D Rats. That happens because *%*=A3$% MediaWiki insists on re-casing names so we had to make the logon code case-insensitive. You need to logon using the same casing as we have stored in the database to satisfy the foreign key. Meanwhile, I'll be fixing up the code to try to handle that.... Oh, and it's 'catalogue' because that's how catalogue is spelt. In English. In England. If you broke the spelling on your side of the pond then that's your look out :-p --=20 Dave Page EnterpriseDB UK: http://www.enterprisedb.com