W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2008

[Bug 5288] [XQuery] XPST0005 and conditional expressions

From: <bugzilla@farnsworth.w3.org>
Date: Wed, 16 Apr 2008 18:56:14 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1JmCnm-00032A-75@farnsworth.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5288





------- Comment #12 from mrys@microsoft.com  2008-04-16 18:56 -------
(In reply to comment #11)
> Could you please give a bit of background as to the reason for this decision?
> I was hoping that your decision would be to limit XPST0005 to steps in a path
> expression.
> Am I right in thinking that all XQuery Update expressions type as
> empty-sequence, and therefore must raise XPST0005 if static typing is enalbed?
> Do you know whether other implementations (which support static typing) raise
> this error as per the specification?

SQL Server 2005/2008 is implementing pessimistic static typing, however, we do
not error out on if (/a) then () else () (we are not supporting fn:error). We
often raise static errors on other expressions than path expressions that can
lead to always empty results, but raise more specific errors (e.g., () + 5 will
raise a static error).
Received on Wednesday, 16 April 2008 18:57:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:22 UTC