On 12/08/2013 00:33, Simonov Denis wrote:
> Adriano dos Santos Fernandes <adrian...@gmail.com> писал(а) в своём письме  
> Mon, 12 Aug 2013 05:28:25 +0400:
>
>> Please ignore this.
>>
>> What PostgreSQL seems to accept (at parser level) and is not standard is:
>> - WHERE (1 = 1) + (2 = 2)
>>
> It's analog
>    WHERE true + true
>
> true + true = ?
> true + false = ?
> false + false = ?
It's not analog. A boolean literal is a value, but (1 = 1) is a boolean
expression, not a value.

> I don't know that tells in this respect the standard, but it seems to me  
> these expressions aren't correct
>
As I said, PostgreSQL accepts at "parser level". But PostgreSQL also
allows operator overloading, so for them it may be valid.

At this time, it seems difficult to accept even all the standard cases
without language conflicts, so I'm not thinking about non-standard cases.


Adriano


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to