Skip to content

Commit afe66df

Browse files
hperlory-bot
authored andcommitted
feat(changelog-oel): choose identity schema in self-service registration and login flows
GitOrigin-RevId: 8d6ee03cc8181d3277100a4b7412a3a113799964
1 parent 405e21b commit afe66df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

oryx/sqlxx/types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -559,16 +559,16 @@ func (ns *NullDuration) UnmarshalJSON(data []byte) error {
559559
return nil
560560
}
561561

562-
func (ns Duration) IsZero() bool { return time.Duration(ns) == 0 }
562+
func (ns Duration) IsZero() bool { return ns == 0 }
563563
func (m StringSliceJSONFormat) IsZero() bool { return len(m) == 0 }
564564
func (n StringSlicePipeDelimiter) IsZero() bool { return len(n) == 0 }
565-
func (ns NullBool) IsZero() bool { return !ns.Valid }
566-
func (ns FalsyNullBool) IsZero() bool { return !ns.Valid }
565+
func (ns NullBool) IsZero() bool { return !ns.Valid || !ns.Bool }
566+
func (ns FalsyNullBool) IsZero() bool { return !ns.Valid || !ns.Bool }
567567
func (ns NullString) IsZero() bool { return len(ns) == 0 }
568568
func (ns NullTime) IsZero() bool { return time.Time(ns).IsZero() }
569569
func (n MapStringInterface) IsZero() bool { return len(n) == 0 }
570570
func (m JSONArrayRawMessage) IsZero() bool { return len(m) == 0 || string(m) == "[]" }
571571
func (m JSONRawMessage) IsZero() bool { return len(m) == 0 || string(m) == "null" }
572572
func (m NullJSONRawMessage) IsZero() bool { return len(m) == 0 || string(m) == "null" }
573-
func (ns NullInt64) IsZero() bool { return !ns.Valid }
574-
func (ns NullDuration) IsZero() bool { return !ns.Valid }
573+
func (ns NullInt64) IsZero() bool { return !ns.Valid || ns.Int == 0 }
574+
func (ns NullDuration) IsZero() bool { return !ns.Valid || ns.Duration == 0 }

0 commit comments

Comments
 (0)