From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | pgsql(at)chicken(dot)org (Brett McCormick) |
Cc: | pgsql-hackers(at)hub(dot)org |
Subject: | Re: [HACKERS] subselects & views |
Date: | 1998-08-22 04:09:29 |
Message-ID: | 199808220409.AAA04898@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I think this is fixed in 6.4. Beta is September 1.
>
> select max(ccorderseq) from ccorder;
> max
> ---
> 603
> (1 row)
>
> icv=> select * From the_view where ccorderseq = 603;
>
> [ I get the row back ]
>
> select * From the_view where ccorderseq = (select max(ccorderseq) from ccorder);
>
> I don't get the row back. nothing has changed, the max value is still
> the same. when I write out the view as a select, the subquery works
> and I get the row.
>
> if it makes much of a difference the view is doing a "glob" query (of
> a parent and all children, i.e. select from table*)
>
>
>
--
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)
From | Date | Subject | |
---|---|---|---|
Next Message | Brett McCormick | 1998-08-22 08:58:36 | Re: [HACKERS] SSL patch updated & pl/perl slated for 6.4 |
Previous Message | Bruce Momjian | 1998-08-22 03:53:39 | Re: [INTERFACES] Re: [HACKERS] changes in 6.4 |