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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Abrahamsen 2010-07-02 22:15:38 BUG #5537: Makefile.darwin broken
Previous Message Mike Fowler 2010-07-02 13:01:16 Re: BUG #5534: IS DOCUMENT predicate errors instead of returning false