mirror of https://github.com/go-gorm/gorm.git
Fix select with *
This commit is contained in:
parent
477efab8cd
commit
3a126233bf
|
@ -17,7 +17,7 @@ func SelectAndOmitColumns(stmt *gorm.Statement) (map[string]bool, bool) {
|
||||||
for _, dbName := range stmt.Schema.DBNames {
|
for _, dbName := range stmt.Schema.DBNames {
|
||||||
results[dbName] = true
|
results[dbName] = true
|
||||||
}
|
}
|
||||||
return results, true
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if field := stmt.Schema.LookUpField(column); field != nil {
|
if field := stmt.Schema.LookUpField(column); field != nil {
|
||||||
|
|
Loading…
Reference in New Issue