Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 671104764EC for ; Tue, 18 Jun 2002 09:04:07 -0400 (EDT) Received: from ciderbox.stanaway.net (ciderbox.stanaway.net [170.76.50.98]) by postgresql.org (Postfix) with ESMTP id AE7D64766AA for ; Tue, 18 Jun 2002 08:47:48 -0400 (EDT) Received: by ciderbox.stanaway.net (Postfix, from userid 1000) id 4ABFD929A5; Tue, 18 Jun 2002 07:47:38 -0500 (CDT) Subject: Re: Uppercase field names not found From: David Stanaway To: Scot Wilcoxon Cc: pgsql-admin@postgresql.org In-Reply-To: <3D0E8C13.4000205@wilcoxon.org> References: <3D0E8C13.4000205@wilcoxon.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BkWo07GTqs3mBdzT/CoN" X-Mailer: Ximian Evolution 1.0.5 Date: 18 Jun 2002 07:47:37 -0500 Message-Id: <1024404457.9198.17.camel@ciderbox> Mime-Version: 1.0 X-Archive-Number: 200206/115 X-Sequence-Number: 4550 --=-BkWo07GTqs3mBdzT/CoN Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2002-06-17 at 20:25, Scot Wilcoxon wrote: > I've seen a few comments of people encountering this problem, but not=20 > yet a solution: >=20 > Upper case field names in commands are forced to lower case and then not= =20 > found. >=20 > I was able to create a table with a field called "ABC". >=20 > "SELECT ABC FROM mytable;" > emits the error > "no such attribute or function abc" If it is possible, you will have a much easier time if you change you schema to use case folded names=20 EG:=20 CREATE TABLE Foo ( ... )=20 rather than: CREATE TABLE "Foo" ( ... )=20 otherwise.. You will need to change your code to quote all references to the name: EG:=20=20 $q =3D 'SELECT * from "Foo"'; If you don't put ["]'s around the object identifier, it gets case folded to lower case. -- David Stanaway --=-BkWo07GTqs3mBdzT/CoN Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iQEXAwUAPQ8r6b6yIDFGeSAyFAJwQgP/e0EuYWBqLUkqLOiDmLc0+hyM2GKj18YL jcAloiHraFp2LHqDZEzHI+O/e5AyCxGeNlzG4efdn3/fxPexu/DmmDsFyGwDPF5Z 2dQ7Bqnd/aYwfIhaDdpWcVtdwikF38gE3aIGWVH5hY7AISDuRpaR938R6Z+xb+AD 4gY1S00lShsD/iKev5IsCKWubPXN3jd+0JpSaGoLBunrbvAOZP06e1keWS/Kux60 otw/wQkQz/1vnBMjTXoXhNlPNoNIkv8KtP60RnKf3JQFgtnshoefdd7a7cmuDeMC 0OS4Zp7I+PKykTmOAG9ydF5VgaJ6A8Qe387gyYjTLE9MqPGRW6W8JvA6 =c7b6 -----END PGP SIGNATURE----- --=-BkWo07GTqs3mBdzT/CoN--