Re: [HACKERS] BETWEEN patch

2001-01-25 Thread Thomas Swan
At 1/24/2001 10:19 AM, Tom Lane wrote: Thomas Swan [EMAIL PROTECTED] 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

Re: [HACKERS] BETWEEN patch

2001-01-25 Thread Tom Lane
Thomas Swan [EMAIL PROTECTED] writes: 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. After sending it... I realized that it was not correct

[HACKERS] BETWEEN patch

2001-01-24 Thread Thomas Swan
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 Granted this is brute force and not very elegant, however it does provide the correct

Re: [HACKERS] BETWEEN patch

2001-01-24 Thread Tom Lane
Thomas Swan [EMAIL PROTECTED] 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