You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: constants/state_version.go
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,15 @@ package constants
26
26
// * Earlier if the session timezone or global was set in offset format, it was not parsed correctly and used to fallback to UTC.
27
27
// * Now it parses the offset correctly and uses the timezone offset to set the timezone for the connection.
28
28
//
29
-
// - Version 4: (Current Version) Unsigned int/integer/bigint map to Int64.
29
+
// - Version 4: Unsigned int/integer/bigint map to Int64.
30
30
// * Earlier unsigned int/integer/bigint were mapped to Int32 which caused integer overflows.
31
+
//
32
+
// - Version 5: (Current Version) MongoDB nested DateTime values decoded as UTC time.Time.
33
+
// * BSON DateTime at any depth is now decoded directly to time.Time (UTC) via a custom client registry, preventing json.Marshal crashes for out-of-range years ([0,9999]).
34
+
// * Top-level DateTime fields that previously formatted with the local machine timezone (e.g. "+05:30") now always output UTC ("Z").
31
35
32
36
const (
33
-
LatestStateVersion=4
37
+
LatestStateVersion=5
34
38
)
35
39
36
40
// Used as the current version of the state when the program is running
0 commit comments