Changeset: 8f4601953b24 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8f4601953b24
Added Files:
sql/test/BugTracker-2024/Tests/exps-cards-crash-7439.test
Modified Files:
sql/server/rel_statistics_functions.c
sql/test/BugTracker-2024/Tests/All
Branch: Dec2023
Log Message:
fixed issue #7439
added a bit more protection against empty lists
diffs (36 lines):
diff --git a/sql/server/rel_statistics_functions.c
b/sql/server/rel_statistics_functions.c
--- a/sql/server/rel_statistics_functions.c
+++ b/sql/server/rel_statistics_functions.c
@@ -720,6 +720,8 @@ static void
sql_min_max_propagate_statistics(mvc *sql, sql_exp *e)
{
list *l = e->l;
+ if (list_empty(l))
+ return;
sql_exp *first = l->h->data;
atom *omin, *omax;
diff --git a/sql/test/BugTracker-2024/Tests/All
b/sql/test/BugTracker-2024/Tests/All
--- a/sql/test/BugTracker-2024/Tests/All
+++ b/sql/test/BugTracker-2024/Tests/All
@@ -4,8 +4,9 @@ where-between-issue-7428
where-case-null-issue-7429
create-index-query-issue-7430
alloc-overflow-7432
+exps-cards-crash-7439
gc-col-crash-7440
+is-col-uniq-crash-7441
unaligned_mats-7442
recursive-merge-table-crash-7443
greatest-as-colname-7444
-is-col-uniq-crash-7441
diff --git a/sql/test/BugTracker-2024/Tests/exps-cards-crash-7439.test
b/sql/test/BugTracker-2024/Tests/exps-cards-crash-7439.test
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2024/Tests/exps-cards-crash-7439.test
@@ -0,0 +1,5 @@
+statement ok
+CREATE TABLE v0 ( v1 oid )
+
+statement ok
+DELETE FROM v0 WHERE NOT ( v1 IN ( SELECT MAX ( DISTINCT ( SELECT NULL WHERE
v1 AND v1 = 'aggordview1' GROUP BY v1 ) ) FROM v0 ) )
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]