Re: BETWEEN patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Swan <tswan(at)ics(dot)olemiss(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: BETWEEN patch
Date: 2001-01-24 16:19:14
Message-ID: 12723.980353154@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Swan <tswan(at)ics(dot)olemiss(dot)edu> writes:
> A patch to gram.y in src/backend/parser
> Provides for the SQL99 expected behavior of
> select * from foo where fo_num between 1 and 5
> yields the same result as
> select * from foo where fo_num between 5 and 1

This is NOT correct under either SQL92 or SQL99. Read the spec again.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2001-01-24 16:37:30 Re: Open 7.1 items
Previous Message Adam Lang 2001-01-24 16:18:18 Re: Re: MySQL has transactions