Changeset: f0e1b85279ae for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f0e1b85279ae
Modified Files:
        monetdb5/optimizer/opt_bincopyfrom.c
Branch: copybinary
Log Message:

Introduced a silly bug


diffs (26 lines):

diff --git a/monetdb5/optimizer/opt_bincopyfrom.c 
b/monetdb5/optimizer/opt_bincopyfrom.c
--- a/monetdb5/optimizer/opt_bincopyfrom.c
+++ b/monetdb5/optimizer/opt_bincopyfrom.c
@@ -101,16 +101,17 @@ transform(MalBlkPtr mb, InstrPtr old)
                // with ON CLIENT, parallellism is harmful because there is 
only a single
                // connection to the client anyway. Every import will use the 
row count
                // of the previous import, which will serialize them.
+               narrowest_idx = -1;
                row_count_var = -1;
        }
 
        // Then emit the rest of the columns
        for (int i = 0; i < old->retc; i++) {
-               if (i != narrowest_idx) {
-                       int new_row_count_var = extract_column(mb, old, i, 
row_count_var);
-                       if (onclient)
-                               row_count_var = new_row_count_var;
-               }
+               if (i == narrowest_idx)
+                       continue;
+               int new_row_count_var = extract_column(mb, old, i, 
row_count_var);
+               if (onclient)
+                       row_count_var = new_row_count_var;
        }
 
        return MAL_SUCCEED;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to