Re: Posgres Adding braces at beginning and end of text (html) content

Поиск
Список
Период
Сортировка
От nighthawk
Тема Re: Posgres Adding braces at beginning and end of text (html) content
Дата
Msg-id 7832fd560904241539v5f96898bwc84b52b208d401d0@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Posgres Adding braces at beginning and end of text (html) content  (linnewbie <linnewbie@gmail.com>)
Список pgsql-general
On Thu, Apr 2, 2009 at 3:33 PM, linnewbie <linnewbie@gmail.com> wrote:

> set page_content [lindex [ dbh $sql ] 0]

I have never heard of tclodbc, but I believe you are putting the first
row into your variable, which is why it shows with curly braces. The
problem should be more obvious when you try to fetch more than one
column from the table. Try this:

set page_content [lindex [lindex [ dbh $sql ] 0] 0]

That should solve your problem.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Can't use "any" with SQL functions
Следующее
От: Miguel Miranda
Дата:
Сообщение: delete duplicates takes too long