Re: [PATCHES] Patches to get number of tuples affected

Поиск
Список
Период
Сортировка
От D'Arcy" "J.M." Cain
Тема Re: [PATCHES] Patches to get number of tuples affected
Дата
Msg-id m10zPuc-0000dEC@druid.net
обсуждение исходный текст
Ответ на Re: [PATCHES] Patches to get number of tuples affected  (Michael Richards <miker@scifair.acadiau.ca>)
Список pgsql-hackers
Thus spake Michael Richards
> > Why not overload PGTuples() instead (assuming it doesn't already do this)?

As mentioned in another posting, I meant PQntuples().

> Tuples returned tells you how many you can get using the getvalue series.
> If you tried that with an update, it core dumps. I think the two are
> really related, but fundamentally different.

I'm just thinking that it's easy for PQntuples() to tell what it has
to return and branch accordingly.  It just makes it easier to remember
the function.  No asking which get tuple count function works for update
and which for select.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


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

Предыдущее
От: "D'Arcy" "J.M." Cain
Дата:
Сообщение: Re: [PATCHES] Patches to get number of tuples affected
Следующее
От: "Hub.Org News Admin"
Дата:
Сообщение: ...