Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f65GcZa78522 for ; Thu, 5 Jul 2001 12:38:35 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f65GcPJ03422; Thu, 5 Jul 2001 12:38:25 -0400 (EDT) To: "NTB Technical Support" cc: pgsql-interfaces@postgresql.org Subject: Re: ADO and ODBC: More In-reply-to: <000d01c1056a$00dadc20$2780bcc3@northeast.co.uk> References: <000d01c1056a$00dadc20$2780bcc3@northeast.co.uk> Comments: In-reply-to "NTB Technical Support" message dated "Thu, 05 Jul 2001 16:48:57 +0100" Date: Thu, 05 Jul 2001 12:38:25 -0400 Message-ID: <3419.994351105@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200107/30 X-Sequence-Number: 1783 "NTB Technical Support" writes: > I basically don't know anything about ODBC, but it looks to me like > ADO/OLEDB is either getting misled about whether it needs to quote the > column name containing spaces, or it is just not doing it right. Curious that it quotes the table name (which doesn't need it) and then doesn't quote the column name (which does). Since SQLColAttributes isn't returning a pre-quoted table name, clearly ADO has heard of the idea that it ought to quote names. It's just omitting to do it for the column name. I'd write it off as broken code in ADO, and program around it by not using column names that require quoting. Ugly answer, but it's not clear that you have an alternative (short of waiting for an ADO fix). I don't like the idea of changing what SQLColAttributes returns ... that seems certain to break other applications. But first, a wild stab in the dark --- what happens if you write RS("""child beds""") = 33 ie provide the quotes at the application level? regards, tom lane