Return value if table doesn't exist

Поиск
Список
Период
Сортировка
От Paul M Foster
Тема Return value if table doesn't exist
Дата
Msg-id 20020401211824.A24228@quillandmouse.com
обсуждение исходный текст
Список pgsql-general
In the C++ interface, if one sends a query to the backend (via
ExecTuplesOk()) about a table, how do you tell if the table doesn't
exist? It appears that ExecTuplesOk() simply returns PGRES_EMPTY_QUERY,
and ConnectionBad() returns false. The only way I can see to tell if the
table doesn't exist is by checking ErrorMessage(). That seems pretty
goofy. This is pgsql 7.1.3.

Any ideas?

Paul

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: %ROWTYPE as PL/pgsql argument
Следующее
От: Richard Emberson
Дата:
Сообщение: Re: %ROWTYPE as PL/pgsql argument