fix raw
This commit is contained in:
parent
9acaa33324
commit
6369712e58
2
scope.go
2
scope.go
@ -677,7 +677,7 @@ func (scope *Scope) whereSQL() (sql string) {
|
||||
primaryConditions, andConditions, orConditions []string
|
||||
)
|
||||
|
||||
if !scope.Search.Unscoped && hasDeletedAtField {
|
||||
if !scope.Search.Unscoped && hasDeletedAtField && !scope.Search.raw {
|
||||
sql := fmt.Sprintf("%v.%v IS NULL", quotedTableName, scope.Quote(deletedAtField.DBName))
|
||||
primaryConditions = append(primaryConditions, sql)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user