-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GODRIVER-1930 bsoncore Array functions should return Array #626
GODRIVER-1930 bsoncore Array functions should return Array #626
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for jumping on this quickly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -978,38 +978,3 @@ func sortStringAlphebeticAscending(s string) string { | |||
sort.Sort(ss) | |||
return string([]rune(ss)) | |||
} | |||
|
|||
func docAsArray(d Document, debug bool) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, removing this in favor of Array.DebugString
/ Array.String
was a good call.
GODRIVER-1930
Changes
bsoncore#ReadArray()
to return thebsoncore#Array
type instead of thebsoncore#Document
type, a change that should have been handled in GODRIVER-1846.This change modifies the return type of
bsoncore#Array()
andbsoncore#ArrayOK()
, which in turn requires some changes to testing andx
level code; all small changes 😄 .