Changeset: 5408eb05e544 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5408eb05e544
Modified Files:
        monetdb5/modules/mal/tablet.c
Branch: Jul2015
Log Message:

Fix for bug 3813: also deal with empty last column.


diffs (16 lines):

diff --git a/monetdb5/modules/mal/tablet.c b/monetdb5/modules/mal/tablet.c
--- a/monetdb5/modules/mal/tablet.c
+++ b/monetdb5/modules/mal/tablet.c
@@ -990,10 +990,10 @@ SQLload_parse_line(READERtask *task, int
        errmsg[0] = 0;
 
        if (task->quote || task->seplen != 1) {
-               for (i = 0; *line && i < as->nr_attrs; i++) {
+               for (i = 0; i < as->nr_attrs; i++) {
                        task->fields[i][idx] = line;
                        /* recognize fields starting with a quote, keep them */
-                       if (*line == task->quote) {
+                       if (*line && *line == task->quote) {
 #ifdef _DEBUG_TABLET_
                                mnstr_printf(GDKout, "before #1 %s\n", s = 
line);
 #endif
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to