Changeset: 160c39cb8f2b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=160c39cb8f2b
Modified Files:
        java/ChangeLog.Jun2010
        java/Makefile.ag
        java/NT/rules.msc
        java/build.properties
        java/release.txt
        java/src/nl/cwi/monetdb/jdbc/MonetConnection.java
Branch: Jun2010
Log Message:

Fix very weird errors when using the MAL language.

It seems the server cannot handle queries that are not newline
terminated.  A query like io.printf("bla"); would result in the
following exception:
TypeException:user.main[1]:'ioo.printf' undefined in: _1:any := 
ioo.printf(_2:str)

(Note the ioo vs io)

strace confirmed the client (JDBC in this case) really sends io.printf
and nothing else.  Adding the trailing newline made the error go away,
and the server aparently suddenly getting non-corrupted data.


diffs (71 lines):

diff -r 1839f6c42e03 -r 160c39cb8f2b java/ChangeLog.Jun2010
--- a/java/ChangeLog.Jun2010    Fri Jul 16 13:58:17 2010 +0200
+++ b/java/ChangeLog.Jun2010    Fri Jul 16 14:49:31 2010 +0200
@@ -23,3 +23,6 @@
   latter clean from files generated during the build.
   On Windows, the build directory must be a sibling of ...<package>NT .
 
+* Fri Jul 16 2010 Fabian Groffen <[email protected]>
+- Fix problem when using the MAL language.  Any statement would return an 
error with a typo that was not typed in by the user, such as ioo.printf when 
io.printf was typed.
+
diff -r 1839f6c42e03 -r 160c39cb8f2b java/Makefile.ag
--- a/java/Makefile.ag  Fri Jul 16 13:58:17 2010 +0200
+++ b/java/Makefile.ag  Fri Jul 16 14:49:31 2010 +0200
@@ -30,7 +30,7 @@
 ant_distjdbc = {
        COND = HAVE_JAVAJDBC
        DIR = datadir/MonetDB/lib
-       FILES = monetdb-1.6-mcl.jar monetdb-1.15-jdbc.jar jdbcclient.jar
+       FILES = monetdb-1.6-mcl.jar monetdb-1.16-jdbc.jar jdbcclient.jar
 }
 
 ant_distxrpc = {
diff -r 1839f6c42e03 -r 160c39cb8f2b java/NT/rules.msc
--- a/java/NT/rules.msc Fri Jul 16 13:58:17 2010 +0200
+++ b/java/NT/rules.msc Fri Jul 16 14:49:31 2010 +0200
@@ -28,6 +28,6 @@
 !INCLUDE $(RULESMSC)
 
 pkg = java
-VERSION=20100331
+VERSION=20100716
 
 ODBC_LIBS = odbccp32.lib user32.lib
diff -r 1839f6c42e03 -r 160c39cb8f2b java/build.properties
--- a/java/build.properties     Fri Jul 16 13:58:17 2010 +0200
+++ b/java/build.properties     Fri Jul 16 14:49:31 2010 +0200
@@ -19,7 +19,7 @@
 # major release number
 JDBC_MAJOR=1
 # minor release number
-JDBC_MINOR=15
+JDBC_MINOR=16
 # an additional identifying string
 JDBC_VER_SUFFIX=Magnistipula
 # the default port to connect on, if no port given when using SQL
diff -r 1839f6c42e03 -r 160c39cb8f2b java/release.txt
--- a/java/release.txt  Fri Jul 16 13:58:17 2010 +0200
+++ b/java/release.txt  Fri Jul 16 14:49:31 2010 +0200
@@ -1,8 +1,8 @@
 RELEASE NOTES
-MonetDB JDBC driver version 1.15 (Magnistipula/MCL-1.6)
+MonetDB JDBC driver version 1.16 (Magnistipula/MCL-1.6)
 Fabian Groffen <[email protected]>
 
-Release date: 2010-03-31
+Release date: 2010-07-16
 
 
 This JDBC driver is designed for use with MonetDB, a main-memory
diff -r 1839f6c42e03 -r 160c39cb8f2b 
java/src/nl/cwi/monetdb/jdbc/MonetConnection.java
--- a/java/src/nl/cwi/monetdb/jdbc/MonetConnection.java Fri Jul 16 13:58:17 
2010 +0200
+++ b/java/src/nl/cwi/monetdb/jdbc/MonetConnection.java Fri Jul 16 14:49:31 
2010 +0200
@@ -254,7 +254,7 @@
                        commandTempl[2] = "\nX";        // separator
                } else if (lang == LANG_MIL || lang == LANG_MAL) {
                        queryTempl[0] = null;
-                       queryTempl[1] = ";";
+                       queryTempl[1] = ";\n";
                        queryTempl[2] = ";\n";
 
                        commandTempl[0] = null;         // pre
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to