Re: [HACKERS] Case statement ready?

From: jwieck(at)debis(dot)com (Jan Wieck)
To: lockhart(at)alumni(dot)caltech(dot)edu (Thomas G(dot) Lockhart)
Cc: jwieck(at)debis(dot)com, hackers(at)postgreSQL(dot)org, maillist(at)candle(dot)pha(dot)pa(dot)us, vadim(at)krs(dot)ru
Subject: Re: [HACKERS] Case statement ready?
Date: 1998-12-07 09:57:17
Message-ID: m0zmxPp-000EBPC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> > > If anyone has a chance to look at the new code wrt the rewriter
> > Did it add new node types? If not, the rewrite system might
> > already be happy with it. Anyway - I'll take a look at it and
> > check/extend/fix for the rewrite corner.
>
> Yes, it added new node types (CaseExpr and CaseWhen), and I added a few
> lines to rewriteHandler.c to pretty much ignore them. Not sure if that
> was the right thing to do.

I expect that the structures below the two new nodes can also
contain Var nodes. And then it's definitely wrong to ignore
them. They must be handled properly in rewriteHandler and
rewriteManip.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Eildert Groeneveld 1998-12-07 14:36:33 memory leak?
Previous Message Tom Lane 1998-12-07 05:54:32 Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!