diff --git a/readme.md b/readme.md index e96eee6..b41b0bf 100644 --- a/readme.md +++ b/readme.md @@ -67,7 +67,7 @@ db.begin() transaction { - val person = personDao.find("name = ?", "John") + val person = personDao.find("name = ? and age = ?", "John", 40) person.name = "Johnny" diff --git a/readme.md b/readme.md index e96eee6..b41b0bf 100644 --- a/readme.md +++ b/readme.md @@ -67,7 +67,7 @@ db.begin() transaction { - val person = personDao.find("name = ?", "John") + val person = personDao.find("name = ? and age = ?", "John", 40) person.name = "Johnny" diff --git a/test/nl/astraeus/database/example/MinimalExample.kt b/test/nl/astraeus/database/example/MinimalExample.kt index dd25445..35fcfba 100644 --- a/test/nl/astraeus/database/example/MinimalExample.kt +++ b/test/nl/astraeus/database/example/MinimalExample.kt @@ -77,7 +77,7 @@ db.begin() transaction { - val person = personDao.find("name = ?", "John") + val person = personDao.find("name = ? and age = ?", "John", 40) person.name = "Johnny"