Code Monkey home page Code Monkey logo

Comments (5)

vmihailenco avatar vmihailenco commented on July 22, 2024

It was marked "not ready for production", because I wanted to reserve right to make backwards incompatible changes (though I don't have any plans). But I use it in production and did not find any issues. So feel free to switch to the v3 and report all issues you find.

I will try to release v3 in 2-3 weeks.

from pg.

owentran avatar owentran commented on July 22, 2024

Seeing an issue reading structs with pointers to time.Time...

panic: pg: unsupported src type: <time.Time Value> [recovered]
    panic: pg: unsupported src type: <time.Time Value>

from pg.

vmihailenco avatar vmihailenco commented on July 22, 2024

Please provide backtrace as well.

from pg.

vmihailenco avatar vmihailenco commented on July 22, 2024

@owentran I released v3.1.1 with a fix. Please try again.

from pg.

owentran avatar owentran commented on July 22, 2024

Works. Thanks for the quick fix. I will continue to test on v3.

FYI, here was the backtrace

goroutine 30 [running]:
testing.func·006()
    /usr/local/go/src/testing/testing.go:441 +0x181
gopkg.in/pg%2ev3.appendValue(0xc2080d0000, 0x145, 0x2000, 0x6e53c0, 0xc20916d820, 0xd9, 0x0, 0x0, 0x0)
    /Users/owen/projects/go/src/gopkg.in/pg.v3/encode.go:127 +0x460
gopkg.in/pg%2ev3.appendValue(0xc2080d0000, 0x145, 0x2000, 0x6e63e0, 0xc20916d820, 0x16, 0x0, 0x0, 0x0)
    /Users/owen/projects/go/src/gopkg.in/pg.v3/encode.go:121 +0x272
gopkg.in/pg%2ev3.appendIface(0xc2080d0000, 0x145, 0x2000, 0x6e63e0, 0xc20916d820, 0x0, 0x0, 0x0)
    /Users/owen/projects/go/src/gopkg.in/pg.v3/encode.go:111 +0x835
gopkg.in/pg%2ev3.(*pgValue).AppendValue(0xc208107900, 0xc2080d0000, 0x145, 0x2000, 0x6dcb20, 0xc20914e780, 0xd9, 0x0, 0x0, 0x0)
    /Users/owen/projects/go/src/gopkg.in/pg.v3/typeinfo.go:88 +0x30b
gopkg.in/pg%2ev3.formatQuery(0xc2080d0000, 0x145, 0x2000, 0xc208093500, 0x2e7, 0x300, 0xc209185c78, 0x0, 0x1, 0x0, ...)
    /Users/owen/projects/go/src/gopkg.in/pg.v3/encode.go:410 +0x968
gopkg.in/pg%2ev3.AppendQ(0xc2080d0000, 0x5, 0x2000, 0x8a6030, 0x2e7, 0xc209185c78, 0x1, 0x1, 0x0, 0x0, ...)
    /Users/owen/projects/go/src/gopkg.in/pg.v3/encode.go:23 +0xe7
gopkg.in/pg%2ev3.writeQueryMsg(0xc20808b6c0, 0x8a6030, 0x2e7, 0xc209185c78, 0x1, 0x1, 0x0, 0x0)
    /Users/owen/projects/go/src/gopkg.in/pg.v3/messages.go:137 +0xb8
gopkg.in/pg%2ev3.simpleQuery(0xc208030540, 0x8a6030, 0x2e7, 0xc209185c78, 0x1, 0x1, 0x2, 0x0, 0x0)
    /Users/owen/projects/go/src/gopkg.in/pg.v3/db.go:372 +0x7f
gopkg.in/pg%2ev3.(*DB).Exec(0xc2080fce90, 0x8a6030, 0x2e7, 0xc209185c78, 0x1, 0x1, 0x0, 0x0, 0x0)
    /Users/owen/projects/go/src/gopkg.in/pg.v3/db.go:187 +0xe5
gopkg.in/pg%2ev3.(*DB).ExecOne(0xc2080fce90, 0x8a6030, 0x2e7, 0xc209185c78, 0x1, 0x1, 0x0, 0x0, 0x0)

from pg.

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.