test: add task #47 with reminders outside window for bug #2245

Add a second reminder to task 2 (in 2019, outside the test window)
and create task #47 with two reminders that straddle the test window
(2018-08-01 and 2019-03-01) but neither falls inside it. This exposes
the multi-row matching bug where separate EXISTS subqueries can match
different rows in the same sub-table.
This commit is contained in:
kolaente
2026-02-18 17:04:35 +01:00
parent 362962e81e
commit 6733ac4e22
2 changed files with 27 additions and 0 deletions

View File

@@ -16,3 +16,22 @@
task_id: 40
reminder: 2023-03-04 15:00:00
created: 2018-12-01 01:12:04
# Task 2 already has one reminder at 2018-12-01 01:13:44 (id 3).
# Add a second reminder for task 2 that is far outside the range used by
# the "filtered reminder dates" test (2018-10-01 to 2018-12-10).
# This second reminder is in 2019, well after the upper bound.
- id: 5
task_id: 2
reminder: 2019-06-01 12:00:00
created: 2018-12-01 01:12:04
# Task 47: two reminders, neither inside the (2018-10-01, 2018-12-10) window
# Reminder before the window:
- id: 6
task_id: 47
reminder: 2018-08-01 12:00:00
created: 2018-12-01 01:12:04
# Reminder after the window:
- id: 7
task_id: 47
reminder: 2019-03-01 12:00:00
created: 2018-12-01 01:12:04

View File

@@ -412,3 +412,11 @@
due_date: 2023-03-01 15:00:00
created: 2018-12-01 01:12:04
updated: 2018-12-01 01:12:04
- id: 47
title: 'task #47 with reminders outside window'
done: false
created_by_id: 1
project_id: 1
index: 32
created: 2018-12-01 01:12:04
updated: 2018-12-01 01:12:04