Git Product home page Git Product logo

Comments (4)

guregu avatar guregu commented on August 17, 2024 2

Hello everyone. I'm very sorry for the breakage. I have just released v1.22.2 which should fix this. Please try it out and let me know how it goes. (Apologies as well for not seeing this earlier -- I have no idea why GitHub isn't notifying me anymore 😢)

from dynamo.

amit-evermile avatar amit-evermile commented on August 17, 2024

Happens to me too

from dynamo.

nightlord189 avatar nightlord189 commented on August 17, 2024

Also caught this bug. Seems that it started since version 1.22. In my usecase it happens only when attribute is pointer. Value attributes work as usual. Attaching screenshots and code to reproduce.

`package main

import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/guregu/dynamo"
)

type User struct {
ID *string dynamo:"id,hash"
Age int dynamo:"age"
}

func main() {
sess := session.Must(session.NewSession())
cli := dynamo.New(sess, &aws.Config{Region: aws.String("eu-west-1")})
table := cli.Table("bug-get-all")

var result []User
err := table.Scan().Consistent(true).All(&result)

fmt.Println("read", len(result), err)

fmt.Printf("[%s %d]  [%s %d]\n", *result[0].ID, result[0].Age, *result[1].ID, result[1].Age)

}

`

go.mod:
`module dynamo9

go 1.21.0

require (
github.com/aws/aws-sdk-go v1.49.13
github.com/guregu/dynamo v1.22.0
)

require (
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
golang.org/x/sync v0.6.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
`
Screenshot 2024-03-26 at 18 30 32
Screenshot 2024-03-26 at 18 31 32

from dynamo.

akmaljalilov avatar akmaljalilov commented on August 17, 2024

It happens to me, too.

from dynamo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.