[MarkLogic Dev General] int vs integer
Danny Sokolsky
dsokolsky at marklogic.com
Thu Jun 19 14:06:24 PDT 2008
Hi Mike,
Yes, it is the xml type xs:int. If you define such a range index on an
element (or attribute), the rule is that you need to be able to cast the
value to an xs:int, otherwise it will throw an exception when you try to
load it (or it will log an error when you reindex). The same for other
types.
I am not sure what the actual ranges for an int are off the top of my
head.
-Danny
-----Original Message-----
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Mike
Sokolov
Sent: Thursday, June 19, 2008 1:45 PM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] int vs integer
When creating range indexes, you have a choice of int vs. long (among
other types). Am I correct in thinking that "int" maps to xs:int (which
is specified as -32768 to 32767)? Or is it really machine "int" (32 or
64)? What happens if an id (say) is outside that range? Does it
generate an error?
-Mike
_______________________________________________
General mailing list
General at developer.marklogic.com
http://xqzone.com/mailman/listinfo/general
More information about the General
mailing list