PQftype() and Oid

Поиск
Список
Период
Сортировка
От Andro
Тема PQftype() and Oid
Дата
Msg-id da7021e0608040738l3b0880a1q5a76b838937f8c78@mail.gmail.com
обсуждение исходный текст
Ответы Re: PQftype() and Oid  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
Список pgsql-interfaces
Hi,<br /><br />Oids are in pg_type catalog (server side) and src/include/catalog/pg_type.h (hard-wired).<br /><br />But
whatshould we compare the Oid returned by PQftype() with?<br />Let's say I want to check if column 1 is a VARCHAR, do I
haveto <br /><br />if (PQftype(res,1) == 1043)<br /> ...;<br /><br />?<br />Isn't there a kind of enum which we could
relyon to find out types? What if Oids change in pg_type.h?<br /><br />Thanks<br /><br />Charles<br /><br /> 

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

Предыдущее
От: andy rost
Дата:
Сообщение: Re: Using FETCH ALL with descriptor areas
Следующее
От: Volkan YAZICI
Дата:
Сообщение: Re: PQftype() and Oid