Changeset: 70754de2a27f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=70754de2a27f
Modified Files:
        java/ChangeLog
        java/Makefile.ag
        java/build.properties
        java/release.txt
        java/src/nl/cwi/monetdb/jdbc/MonetDriver.java.in
Branch: default
Log Message:

jdbc: update mapping for sec_interval to DECIMAL

Because second intervals have grown precision digits now, allow to
retrieve those by mapping seconds interval on a decimal type.
Bump JDBC version number for this change.


diffs (61 lines):

diff --git a/java/ChangeLog b/java/ChangeLog
--- a/java/ChangeLog
+++ b/java/ChangeLog
@@ -1,3 +1,7 @@
 # ChangeLog file for java
 # This file is updated with Maddlog
 
+* Thu Sep  1 2011 Fabian Groffen <[email protected]>
+- INTERVAL columns are now treated as decimals, since they can have
+  sub-second precision.
+
diff --git a/java/Makefile.ag b/java/Makefile.ag
--- a/java/Makefile.ag
+++ b/java/Makefile.ag
@@ -27,7 +27,7 @@ JAVA_HOME = @JAVA_HOME@
 ant_distjdbc = {
        COND = HAVE_JAVAJDBC
        DIR = datadir/monetdb/lib
-       FILES = monetdb-1.6-mcl.jar monetdb-1.22-jdbc.jar jdbcclient.jar
+       FILES = monetdb-1.6-mcl.jar monetdb-1.23-jdbc.jar jdbcclient.jar
 }
 
 ant_distmerocontrol = {
diff --git a/java/build.properties b/java/build.properties
--- a/java/build.properties
+++ b/java/build.properties
@@ -19,7 +19,7 @@ MCL_MINOR=6
 # major release number
 JDBC_MAJOR=1
 # minor release number
-JDBC_MINOR=22
+JDBC_MINOR=23
 # an additional identifying string
 JDBC_VER_SUFFIX=Magnistipula
 # the default port to connect on, if no port given when using SQL
diff --git a/java/release.txt b/java/release.txt
--- a/java/release.txt
+++ b/java/release.txt
@@ -1,8 +1,8 @@
 RELEASE NOTES
-MonetDB JDBC driver version 1.22 (Magnistipula/MCL-1.6)
+MonetDB JDBC driver version 1.23 (Magnistipula/MCL-1.6)
 Fabian Groffen <[email protected]>
 
-Release date: 2011-06-06
+Release date: 2011-09-01
 
 
 This JDBC driver is designed for use with MonetDB, a main-memory
diff --git a/java/src/nl/cwi/monetdb/jdbc/MonetDriver.java.in 
b/java/src/nl/cwi/monetdb/jdbc/MonetDriver.java.in
--- a/java/src/nl/cwi/monetdb/jdbc/MonetDriver.java.in
+++ b/java/src/nl/cwi/monetdb/jdbc/MonetDriver.java.in
@@ -289,7 +289,7 @@ final public class MonetDriver implement
                typeMap.put("month_interval", new Integer(Types.INTEGER));
                typeMap.put("oid", new Integer(Types.OTHER));
                typeMap.put("real", new Integer(Types.REAL));
-               typeMap.put("sec_interval", new Integer(Types.BIGINT));
+               typeMap.put("sec_interval", new Integer(Types.DECIMAL));
                typeMap.put("smallint", new Integer(Types.SMALLINT));
                typeMap.put("table", new Integer(Types.ARRAY));
                typeMap.put("time", new Integer(Types.TIME));
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to