Skip site navigation (1) Skip section navigation (2)

Re: BUG #5534: IS DOCUMENT predicate errors instead of returning false

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Mike Fowler <mike(at)mlfowler(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5534: IS DOCUMENT predicate errors instead of returning false
Date: 2010-07-02 15:02:51
Message-ID: 1278082971.25901.3.camel@vanquo.pezone.net (view raw or flat)
Thread:
Lists: pgsql-bugs
On fre, 2010-07-02 at 14:01 +0100, Mike Fowler wrote:
> 
> The attached patch is a very small patch that changes parse_expr.c
> to  
> not convert everything to xml. This now means that when passed  
> malformed XML it will return false instead of throwing an exception.  
> In my mind this acceptable as I don't see anywhere in the standard  
> that mandates that:
> 
> xmlval IS NOT DOCUMENT == xmlval IS CONTENT

It says that the declared type of the argument of IS DOCUMENT is XML,
which would be invalidated by your patch.


In response to

pgsql-bugs by date

Next:From: Peter AbrahamsenDate: 2010-07-02 22:15:38
Subject: BUG #5537: Makefile.darwin broken
Previous:From: Mike FowlerDate: 2010-07-02 13:01:16
Subject: Re: BUG #5534: IS DOCUMENT predicate errors instead ofreturning false

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group