Re: Coding help

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Coding help
Дата
Msg-id 10802.1068428208@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Coding help  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: Coding help
Список pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
>> ... you can use code comparable to define.c's defGetInt64()
>> to convert the Value node into a numeric OID, ie, either do intVal() or
>> a call of oidin().

> I thought the whole problem here is that OIDs are unsigned ints, hence 
> intVal() won't allow the highest OIDs?

Exactly.  That's why you need to handle T_Float too.  See the int8
example, which has just the same problem.
        regards, tom lane


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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Coding help
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Coding help