Re: how to use $result->ruseltStatus

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how to use $result->ruseltStatus
Дата
Msg-id 26908.989290619@sss.pgh.pa.us
обсуждение исходный текст
Ответ на how to use $result->ruseltStatus  (Randall Perry <rgp@systame.com>)
Список pgsql-interfaces
Randall Perry <rgp@systame.com> writes:
> I want to make sure queries returned aren't empty.

Check the number of rows returned (after checking for OK
resultStatus).

> But it returns '2' (not sure which constant it is, but it's not
> PGRES_EMPTY_QUERY) on empty queries.

PGRES_EMPTY_QUERY means you sent an empty string as the query, eg$conn->exec("");
This is pretty useless, and is distinguished only for historical
reasons...
        regards, tom lane


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

Предыдущее
От: Randall Perry
Дата:
Сообщение: how to use $result->ruseltStatus
Следующее
От: Juhan-Peep Ernits
Дата:
Сообщение: Re: [JDBC] Re: Trouble with JDBC2 ResultSet.getDate()