Changeset: 878a58288f77 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=878a58288f77
Modified Files:
        java/example/SQLcopyinto.java
        java/src/nl/cwi/monetdb/mcl/net/MapiSocket.java
Branch: default
Log Message:

JDBC: fixed some minor bug in the COPY INTO example and added a setDebug() 
method to the MapiSocket class.


diffs (36 lines):

diff --git a/java/example/SQLcopyinto.java b/java/example/SQLcopyinto.java
--- a/java/example/SQLcopyinto.java
+++ b/java/example/SQLcopyinto.java
@@ -92,10 +92,6 @@ public class SQLcopyinto {
                        error = in.waitForPrompt();
                        if (error != null)
                                throw new Exception(error);
-                       out.writeLine(""); // server wants more, we're going to 
tell it, this is it
-                       error = in.waitForPrompt();
-                       if (error != null)
-                               throw new Exception(error);
                        // disconnect from server
                        server.close();
                } catch (IOException e) {
diff --git a/java/src/nl/cwi/monetdb/mcl/net/MapiSocket.java 
b/java/src/nl/cwi/monetdb/mcl/net/MapiSocket.java
--- a/java/src/nl/cwi/monetdb/mcl/net/MapiSocket.java
+++ b/java/src/nl/cwi/monetdb/mcl/net/MapiSocket.java
@@ -224,6 +224,10 @@ public final class MapiSocket {
        public int getSoTimeout() throws SocketException {
                return con.getSoTimeout();
        }
+       
+       public void setDebug(boolean debug) {
+               this.debug = debug;
+       }
 
        /**
         * Connects to the given host and port, logging in as the given
@@ -271,7 +275,6 @@ public final class MapiSocket {
                        writer.registerReader(reader);
                }
 
-               // do the login ritual, read challenge, send response
                String c = reader.readLine();
                reader.waitForPrompt();
                writer.writeLine(
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to