Changeset: 7a172acf7b40 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7a172acf7b40
Modified Files:
        sql/server/rel_dump.c
Branch: Dec2011
Log Message:

Fix crash when using EXPLAIN on a query that uses a filter (e.g. LIKE).
Yet another place where a list was used incorrectly as sql_exp.
The comment said: "TODO later it maybe a list", but in fact it *was* a
list, so I removed the comment as well.


diffs (13 lines):

diff --git a/sql/server/rel_dump.c b/sql/server/rel_dump.c
--- a/sql/server/rel_dump.c
+++ b/sql/server/rel_dump.c
@@ -167,8 +167,7 @@ exp_print(mvc *sql, stream *fout, sql_ex
 
                        exp_print(sql, fout, e->l, depth+1, 0, 0);
                        mnstr_printf(fout, " FILTER %s ", f->func->base.name);
-                       /* TODO later it maybe a list */
-                       exp_print(sql, fout, e->r, depth+1, 0, 0);
+                       exps_print(sql, fout, e->r, depth, alias, 1);
                } else if (e->f) {
                        exp_print(sql, fout, e->r, depth+1, 0, 0);
                        if (is_anti(e))
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to