We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7ee65 commit 6435310Copy full SHA for 6435310
oracle/common.go
@@ -44,6 +44,7 @@ import (
44
"database/sql/driver"
45
"encoding/json"
46
"reflect"
47
+ "slices"
48
"strings"
49
"time"
50
@@ -707,8 +708,10 @@ func isZeroFor(t reflect.Type, v interface{}) bool {
707
708
func filterFields(s *schema.Schema, predicate func(f *schema.Field) bool) []string {
709
var fields []string
710
for _, f := range s.Fields {
- if predicate(f) {
711
- fields = append(fields, f.DBName)
+ if slices.Contains(s.DBNames, f.DBName) {
712
+ if predicate(f) {
713
+ fields = append(fields, f.DBName)
714
+ }
715
}
716
717
return fields
0 commit comments