Return value if table doesn't exist

Поиск
Список
Период
Сортировка
От Paul M Foster
Тема Return value if table doesn't exist
Дата
Msg-id 20020331171550.A12256@quillandmouse.com
обсуждение исходный текст
Список pgsql-interfaces
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-interfaces по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: PyGreSQL bug
Следующее
От: Christof Petig
Дата:
Сообщение: Re: A dynamic SQL/ecpg question