Changeset: a06a76170d39 for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java?cmd=changeset;node=a06a76170d39
Modified Files:
        tests/SQLcopyinto.java
Branch: default
Log Message:

When using \n in SQL strings, the strings need an E prefix.


diffs (12 lines):

diff --git a/tests/SQLcopyinto.java b/tests/SQLcopyinto.java
--- a/tests/SQLcopyinto.java
+++ b/tests/SQLcopyinto.java
@@ -109,7 +109,7 @@ public class SQLcopyinto {
                        // the leading 's' is essential, since it is a protocol 
marker
                        // that should not be omitted, likewise the trailing 
semicolon
                        mclOut.write('s');
-                       mclOut.write("COPY INTO " + tablenm + " FROM STDIN 
USING DELIMITERS ',','\\n';");
+                       mclOut.write("COPY INTO " + tablenm + " FROM STDIN 
USING DELIMITERS ',',E'\\n';");
                        mclOut.newLine();
                        // now write the row data values as csv data lines to 
the STDIN stream
                        for (int i = 0; i < 40; i++) {
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to