From 82765aba1d7028e92e1dfaae65c7682cd14a8f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 2 Oct 2018 13:49:47 +0200 Subject: [PATCH] typo --- Documentation/AssociationsBasics.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/AssociationsBasics.md b/Documentation/AssociationsBasics.md index bfadb249b..502f4af18 100644 --- a/Documentation/AssociationsBasics.md +++ b/Documentation/AssociationsBasics.md @@ -1503,8 +1503,8 @@ struct AuthorInfo: Decodable, FetchableRecord { // COUNT(DISTINCT book1.rowid) AS novelCount // COUNT(DISTINCT book2.rowid) AS theatrePlayCount // FROM author -// LEFT JOIN book book1 ON book.authorId = author.id AND book.kind = 'novel' -// LEFT JOIN book book2 ON book.authorId = author.id AND book.kind = 'theatrePlay' +// LEFT JOIN book book1 ON book1.authorId = author.id AND book1.kind = 'novel' +// LEFT JOIN book book2 ON book2.authorId = author.id AND book2.kind = 'theatrePlay' // GROUP BY author.id let request = Author .annotate(with: Author.books