Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [master](https://github.com/arangodb/go-driver/tree/master) (N/A)
- Add support for `exclusive` field for transaction options
- Fix cursor executionTime statistics getter
- Fix cursor warnings field type

## [1.3.0](https://github.com/arangodb/go-driver/tree/v1.3.0) (2022-03-17)
- Disallow unknown fields feature
Expand Down
7 changes: 6 additions & 1 deletion cursor_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ type cursorExtra struct {
Stats cursorStats `json:"stats,omitempty"`
Profile cursorProfile `json:"profile,omitempty"`
Plan *cursorPlan `json:"plan,omitempty"`
Warnings []string `json:"warnings,omitempty"`
Warnings []warn `json:"warnings,omitempty"`
}

type warn struct {
Code int `json:"code"`
Message string `json:"message"`
}

func (c cursorExtra) GetStatistics() QueryStatistics {
Expand Down