Re: ADO and ODBC: More

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ADO and ODBC: More
Дата
Msg-id 3419.994351105@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ADO and ODBC: More  ("NTB Technical Support" <techsupport@ntb.org.uk>)
Список pgsql-interfaces
"NTB Technical Support" <techsupport@ntb.org.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 writeRS("""child beds""") = 33
ie provide the quotes at the application level?
        regards, tom lane


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "NTB Technical Support"
Дата:
Сообщение: ADO and ODBC: More
Следующее
От: "NTB Technical Support"
Дата:
Сообщение: Re: ADO and ODBC: More