From: | Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at> |
---|---|
To: | "'Hannu Krosing'" <hannu(at)tm(dot)ee> |
Cc: | "'Postgres Hackers List'" <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | AW: AW: AW: SQL3 UNDER |
Date: | 2000-05-25 16:02:06 |
Message-ID: | 219F68D65015D011A8E000006F8590C604AF7DA8@sdexcsrv1.f000.d0188.sd.spardat.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > I am not talking about select * I am talking about
> > "select somefunc(supertable) from supertable"
> >
> > create table supertable (a int);
> > create table taba (b int) under supertable;
> >
> > create function somefunc (tup supertable) returning int
> > as 'select 1' ...
> >
> > create function somefunc (tup taba) returning int
> > as 'select 0.5*b' ....
>
> So how does this work in Informix/Illustra ?
>
> i.e. is the binding done at row evaluation time or
> "when they do 'select * ...' and don't know about coumn b"
when you do "select * from supertable" you only get column a,
but rows from both tables.
when you do select somefunc(supertable) ... the function
corresponding to the rowtype is called thus the taba rows
do get 0.5*b as result.
Andreas
From | Date | Subject | |
---|---|---|---|
Next Message | Mikheev, Vadim | 2000-05-25 16:09:26 | RE: Berkeley DB... |
Previous Message | Zeugswetter Andreas SB | 2000-05-25 15:56:15 | AW: AW: Berkeley DB... |