Re: 9.17.5. Row-wise Comparison
| От | Ragnar Hafstað |
|---|---|
| Тема | Re: 9.17.5. Row-wise Comparison |
| Дата | |
| Msg-id | 1112889114.5742.17.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | Re: 9.17.5. Row-wise Comparison (TJ O'Donnell <tjo@acm.org>) |
| Список | pgsql-sql |
On Thu, 2005-04-07 at 06:44 -0700, TJ O'Donnell wrote: > it might break in future. > > > if (b > 1) then true > > else if (b = 1 and c > 2) then true > > else if (b = 1 and c = 2 and d > 3) then true > > else false > Your spec sql snippet is like an OR, isn't it, instead > of an AND as I'm reyling on? not really. > After PG is to spec, will the behaviour I now see change? yes > > "TJ O'Donnell" <tjo@acm.org> writes: > > > >>I've been using syntax like > >>select a from tbl where (b,c,d) > (1,2,3) > >> to mean > >>select a from t where b>1 and b>2 and d>3 if b=2, c=1 and d=1 then the expression (b,c,d) > (1,2,3) currently evaluates to false, but according to spec, should evaluate to true. gnari
В списке pgsql-sql по дате отправления: