README.md

This commit is contained in:
Gwendal Roué committed 2015-10-27 16:03:51 +01:00
1 parent 7d30fda97e
commit cb096d8710
1 file changed
+2 -2
+2 -2
View File
@@ -495,7 +495,7 @@ dbQueue.inDatabase { db in
"FROM persons " +
"JOIN pets ON pets.masterId = persons.id " +
"GROUP BY persons.id " +
"HAVING COUNT(pets.id) > 1")
"HAVING COUNT(pets.id) >= 2")
}
```
@@ -1418,7 +1418,7 @@ dbQueue.inDatabase { db in
"FROM persons " +
"JOIN pets ON pets.masterId = persons.id " +
"GROUP BY persons.id " +
"HAVING COUNT(pets.id) > 1")
"HAVING COUNT(pets.id) >= 2")
// SELECT * FROM persons WHERE id = 1
Person.fetchOne(db, primaryKey: 1)