Changeset: 7e569fb87150 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7e569fb87150
Modified Files:
        sql/backends/monet5/sql.c
Branch: Jun2016
Log Message:

Fix for copy into with single backslash file separator in monetdblite for 
windows


diffs (17 lines):

diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -3437,8 +3437,12 @@ mvc_import_table_wrap(Client cntxt, MalB
                        GDKfree(ssep);
                        throw(MAL, "sql.copy_from", MAL_MALLOC_FAIL);
                }
+#if defined(HAVE_EMBEDDED) && defined(WIN32)
+               // fix single backslash file separator on windows
+               strcpy(fn, *fname);
+#else
                GDKstrFromStr(fn, (unsigned char*)*fname, len);
-
+#endif
                ss = open_rastream((const char *) fn);
                if (!ss || mnstr_errnr(ss)) {
                        int errnr = mnstr_errnr(ss);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to