Changeset: d6ac37afdf9c for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d6ac37afdf9c Modified Files: sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py Branch: Jul2015 Log Message:
Fix backslashes in COPY INTO for Windows. diffs (14 lines): diff --git a/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py b/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py --- a/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py +++ b/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py @@ -19,7 +19,9 @@ shutil.copyfile(os.path.join(src,'n_regi clt.stdin.write('start transaction;'); clt.stdin.write('create table bug (n_nationkey INTEGER,n_regionkey INTEGER);\n') -clt.stdin.write('copy binary into bug from \'%s/n_nationkey.sorted\', \'%s/n_regionkey.sorted\';\n'% (dst,dst)) +clt.stdin.write('copy binary into bug from \'%s\', \'%s\';\n' % + (os.path.join(dst, 'n_nationkey.sorted').replace('\\', '\\\\'), + os.path.join(dst, 'n_regionkey.sorted').replace('\\', '\\\\'))) out, err = clt.communicate() sys.stdout.write(out.replace(os.environ['TSTTRGBASE'],'${TSTTRGBASE}').replace('\\','/')) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list