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
Hi, we are using a struct with pointer fields, example:
type DynamoObj struct {
Id string `dynamo:"id,hash"`
OrderId *string `dynamo:"order_id"`
CommunicationType *string `dynamo:"communication_type"`
CreatedAt int64 `dynamo:"created_at,unixtime"`
}
When using
result := make([]DynamoObj, 0)
table.Get("id", id).AllWithContext(ctx, &result)
The pointer fields (OrderId, CommunicationType) are overridden with the values from the last record read.
I've verified that this issue doesn't happen on 1.21.
The text was updated successfully, but these errors were encountered:
Sorry about this. I have just released v1.22.2 which should fix this. Please try it out and let me know how it goes. Apologies for not seeing this earlier.
Hi, we are using a struct with pointer fields, example:
When using
The pointer fields (OrderId, CommunicationType) are overridden with the values from the last record read.
I've verified that this issue doesn't happen on 1.21.
The text was updated successfully, but these errors were encountered: