Re: Problemas with gram.y

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Problemas with gram.y
Дата
Msg-id 20060303213259.GE17615@svana.org
обсуждение исходный текст
Ответ на Problemas with gram.y  (tmorelli@tmorelli.com.br)
Список pgsql-hackers
On Fri, Mar 03, 2006 at 07:14:45PM -0200, tmorelli@tmorelli.com.br wrote:
> Hi,
>
> I'm trying to extend the CREATE INDEX statement with a fillfactor clause. In
> Gram.y, I did this:

<snip>

> I had to add a new field into IndexStmt (unsigned int fillfactor). Everything
> is fine after parsing except that I can't see the integer value. For example,
> in transformIndexStmt (analyze.c), I've inspected stmt->fillfactor and I've got
>  a strange, obviously wrong, value (137616352) after issuing this statement:

Did you update infunc/outfuncs/copyfuns in the nodes directory? They're
used to copy the nodes and if you forget to update them you get strange
numbers instead.

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Problemas with gram.y
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Building Windows Server Extensions Using VC++ 2005