Skip site navigation (1) Skip section navigation (2)

Re: ADO and ODBC: More

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "NTB Technical Support" <techsupport(at)ntb(dot)org(dot)uk>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ADO and ODBC: More
Date: 2001-07-05 16:38:25
Message-ID: 3419.994351105@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
"NTB Technical Support" <techsupport(at)ntb(dot)org(dot)uk> 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

In response to

Responses

pgsql-interfaces by date

Next:From: NTB Technical SupportDate: 2001-07-05 17:29:31
Subject: Re: ADO and ODBC: More
Previous:From: NTB Technical SupportDate: 2001-07-05 15:48:57
Subject: ADO and ODBC: More

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group