Re: Coding help

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Coding help
Дата
Msg-id 3205.1068390606@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:
> | COMMENT ON LARGE OBJECT NumericOnly IS comment_text
>   n->objname = makeList1(makeAConst($5));

Forget the makeAConst step --- it's just wasted cycles.  In the
execution routine, 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().
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Coding help
Следующее
От: Roger Leigh
Дата:
Сообщение: New database access library, libpqxx-object