W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2003

RE: ORA-FO-DISTINCT 15.1.11 fn:distinct-values

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Mon, 28 Jul 2003 06:41:29 -0700
Message-ID: <E5B814702B65CB4DA51644580E4853FB09D18316@red-msg-12.redmond.corp.microsoft.com>
To: "Stephen Buxton" <stephen.buxton@oracle.com>, <public-qt-comments@w3.org>

Thank you for your comment.  The description of the function includes
"All the values must be of a single type or one if its subtypes (for
numeric values, the numeric promotion rules defined in 6.2 Operators on
Numeric Values
c#op.numeric>  are used to promote all values to a single common type)."


Thus, in your first example the two lexical forms have the same value
and the value 1 would be returned.  In your second example, you have two
values that compare equal and the semantics say that it is
implementation dependent which value is returned.


All the best, Ashok 


From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Stephen Buxton
Sent: Monday, June 30, 2003 10:49 AM
To: public-qt-comments@w3.org
Subject: ORA-FO-DISTINCT 15.1.11 fn:distinct-values 


Functions and Operators, Section 15.1.11 fn:distinct-values 

What are the type conversion rules ? For example, what is the result of
fn:distinct-values("01", 1) ? 

What is returned from fn:distinct-values(+0, -0) ? 
Is this implementation-defined ? Is this stable ?
Received on Monday, 28 July 2003 09:41:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:48 UTC