Fix #929 #1936

Merged
lunny merged 7 commits from lunny/insert_deleted into master 2021-07-03 12:26:50 +00:00
Showing only changes of commit afef772f40 - Show all commits

View File

@ -978,7 +978,7 @@ func (statement *Statement) joinColumns(cols []*schemas.Column, includeTableName
// CondDeleted returns the conditions whether a record is soft deleted.
func (statement *Statement) CondDeleted(col *schemas.Column) builder.Cond {
var colName = col.Name
var colName = statement.quote(col.Name)
if statement.JoinStr != "" {
var prefix string
if statement.TableAlias != "" {