From b7c6c6af131245562aba66bfc192ffc9a35d4bd0 Mon Sep 17 00:00:00 2001 From: Solomon White Date: Thu, 22 Jan 2015 10:43:47 -0700 Subject: [PATCH] Update README.md fix typo. :) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3cf2eeef..f8349ac5 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,7 @@ db.Where("age = ?", 20).Delete(&User{}) // Soft deleted records will be ignored when query them db.Where("age = 20").Find(&user) -//// SELECT * FROM users WHERE age = 20 AND (deleted_at IS NULL AND deleted_at <= '0001-01-02'); +//// SELECT * FROM users WHERE age = 20 AND (deleted_at IS NULL OR deleted_at <= '0001-01-02'); // Find soft deleted records with Unscoped db.Unscoped().Where("age = 20").Find(&users)