We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've upgraded from v8 to v10, and code suddenly stopped working. There's a function which does this:
func (db *EquinoxDb) IncSectorVersion(geohash uint64) (v int32, err error) { _, err = db.QueryOne(&v, "UPDATE sector SET version=version+1 WHERE geohash=? RETURNING version", geohash) if err == pg.ErrNoRows { _, err = db.QueryOne(&v, `INSERT INTO sector(geohash) VALUES(?) RETURNING version`, geohash) } return }
This has worked before, but now errors out with pg: Model(unsupported *int32).
Queries return data in the provided *int32 value.
pg: Model(unsupported *int32)
Is support for the int32 data type removed?
My go.mod says this is on go-pg v10.7.7.
The text was updated successfully, but these errors were encountered:
Apparently I missed that i need pg.Scan(&v) to get scalar values.
pg.Scan(&v)
Sorry, something went wrong.
@ivoras what was the fix? db.QueryOne(pg.Scan(&v), ....)?
db.QueryOne(pg.Scan(&v), ....)
yes
No branches or pull requests
I've upgraded from v8 to v10, and code suddenly stopped working. There's a function which does this:
This has worked before, but now errors out with pg: Model(unsupported *int32).
Expected Behavior
Queries return data in the provided *int32 value.
Current Behavior
pg: Model(unsupported *int32)
Possible Solution
Is support for the int32 data type removed?
My go.mod says this is on go-pg v10.7.7.
The text was updated successfully, but these errors were encountered: