Re: BUG #5534: IS DOCUMENT predicate errors instead of returning false - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: BUG #5534: IS DOCUMENT predicate errors instead of returning false
Date
Msg-id 1278082971.25901.3.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: BUG #5534: IS DOCUMENT predicate errors instead of returning false  (Mike Fowler <mike@mlfowler.com>)
List 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.

pgsql-bugs by date:

Previous
From: "Jon Strait"
Date:
Subject: BUG #5536: Disputing output for some Geometric types
Next
From: "Peter Abrahamsen"
Date:
Subject: BUG #5537: Makefile.darwin broken