| От | Tom Lane |
|---|---|
| Тема | Re: BUG #2395: Can't get right type oid by PQftype. |
| Дата | |
| Msg-id | 18521.1145117947@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #2395: Can't get right type oid by PQftype. (Volkan YAZICI <yazicivo@ttnet.net.tr>) |
| Ответы |
Re: BUG #2395: Can't get right type oid by PQftype.
|
| Список | pgsql-bugs |
Volkan YAZICI <yazicivo@ttnet.net.tr> writes:
> On Apr 14 06:30, wangshj wrote:
>> In my database,the type oid of testdomainoid is 16385. But PQftype return 23
>> for testdomainoid's type oid.
> PQftype() returns the OID of the actual _type_ used in the domain.
> Therefore, you get 23, OID of the int4/int type, in the above query.
Yeah, this is considered a feature not a bug. In fact the original
implementation just returned the domain's OID, and that was objected
to because most client programs wouldn't recognize it.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера