David Taylor
964f37476d
FIX: TopicQuery for NULL category.topic_id ( #20664 )
...
Our schema allows `category.topic_id` to be NULL. Null values shouldn't actually happen in production, but it is very common in tests because `Fabricate(:category)` skips creating the definition topic to improve performance. Before this commit, a NULL category.topic_id would cause all subcategory topics to be excluded from a TopicQuery result. This is because, in postgres, `NULL <> anything` is falsy. Instead, we can use `IS DISTINCT FROM`, which will return true when NULL is compared to a non-NULL value.
2023-03-13 19:33:26 +00:00
..
2023-03-01 11:07:13 -08:00
2023-03-10 13:45:01 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-03-13 19:33:26 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-25 13:50:21 +02:00
2023-02-16 10:47:01 +00:00
2023-02-28 14:31:59 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-25 13:50:33 +02:00
2023-02-03 12:17:52 +01:00
2023-01-09 11:49:28 +00:00
2023-03-08 12:38:58 -03:00
2023-03-03 09:46:21 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-03-02 16:40:53 +01:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-06 11:55:52 -07:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-06 14:35:05 -05:00
2023-01-09 11:49:28 +00:00
2023-03-07 11:47:18 +11:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-17 18:56:25 +01:00
2023-01-17 12:49:42 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-13 09:24:47 +11:00
2023-01-09 11:49:28 +00:00
2023-01-31 12:08:23 +08:00
2023-01-09 11:49:28 +00:00
2023-03-01 14:12:10 +08:00
2023-01-09 11:49:28 +00:00
2023-03-08 15:27:17 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-15 09:13:19 +00:00
2023-01-09 11:49:28 +00:00
2023-01-30 22:42:47 +00:00
2023-03-13 08:09:38 +08:00
2023-01-09 11:49:28 +00:00
2023-01-16 19:16:17 +02:00
2023-01-09 11:49:28 +00:00