Re: Function call problems with BETWEEN

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: lockhart(at)alumni(dot)caltech(dot)edu (Thomas G(dot) Lockhart)
Cc: hackers(at)postgresql(dot)org
Subject: Re: Function call problems with BETWEEN
Date: 1998-03-11 04:49:23
Message-ID: 199803110449.XAA07467@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Probably the strongest solution would be to copy the entire parse tree.
> Is there already a function to do that? It seems like it would be a lot
> of work to start this from scratch.
>
> Another possible solution would be to have transformExpr() accept a
> previously transformed parse tree without damaging it. A simple minded
> fix having transformExpr() ignore the T_Const (the "105" node in the
> example) and T_Var nodes did not work.
>
> Yet another solution would be to have transformExpr() replicate parse
> trees instead of having gram.y do it.
>
> Any thoughts on this?

I am sure copyfuncs.c has some function to do this, but these are
parse-specific structures. Not sure if they do have such functions. I
considered the reuse a possible problem when I wrote the code, but could
not find any problems, so I left it.

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1998-03-11 05:17:02 Re: [HACKERS] ODBC DRIVERS FOR 6.1/6.2
Previous Message Michael Yeung 1998-03-11 04:47:46 ODBC DRIVERS FOR 6.1/6.2