Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixed an incorrect SQL example
  • Loading branch information
kenkendk authored Nov 25, 2019
1 parent 81eb3fc commit 3375db4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Ceen.Database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class HackedList {


var db = DatabaseHelper.CreateConnection("sample.sqlite");
// Similar to: UPDATE User SET Hacked=1 WHERE Email IN (SELECT HackedID WHERE Type LIKE "email")
// Similar to: UPDATE User SET Hacked=1 WHERE Email IN (SELECT HackedID FROM HackedList WHERE Type LIKE "email")
var c = db.Update(
db.Query<User>()
.Update(new { Hacked = true })
Expand Down Expand Up @@ -326,4 +326,4 @@ static GuardedConnection _sharedCon = new GuardedConnection(DatabaseHelper.Creat

var users = await _sharedCon.RunInTransactionAsync(con => con.SelectCount<User>(x => x.Active));

```
```

0 comments on commit 3375db4

Please sign in to comment.