[Mulgara-svn] r1183 - trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa
pag at mulgara.org
pag at mulgara.org
Tue Aug 26 23:32:21 UTC 2008
Author: pag
Date: 2008-08-26 16:32:20 -0700 (Tue, 26 Aug 2008)
New Revision: 1183
Modified:
trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPDateImpl.java
Log:
Dates are now inserted into the index using their timezone information as well, meaning that equivalent dates with different representations will show up as different entries. This should close #138
Modified: trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPDateImpl.java
===================================================================
--- trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPDateImpl.java 2008-08-26 20:30:01 UTC (rev 1182)
+++ trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPDateImpl.java 2008-08-26 23:32:20 UTC (rev 1183)
@@ -225,7 +225,10 @@
}
public int compare(ByteBuffer d1, int st1, ByteBuffer d2, int st2) {
- return AbstractSPObject.compare(d1.getLong(), d2.getLong());
+ int c = AbstractSPObject.compare(d1.getLong(), d2.getLong());
+ // if the times are the same, then differentiate by timezone
+ if (c == 0) c = AbstractSPObject.compare(d1.getInt(), d2.getInt());
+ return c;
}
}
More information about the Mulgara-svn
mailing list