Skip to content
New issue

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

Find() uses values from the previous row in 1.23.6 #5415

Closed
ov opened this issue Jun 12, 2022 · 3 comments · Fixed by #5417
Closed

Find() uses values from the previous row in 1.23.6 #5415

ov opened this issue Jun 12, 2022 · 3 comments · Fixed by #5417
Assignees
Labels
type:with reproduction steps with reproduction steps

Comments

@ov
Copy link

ov commented Jun 12, 2022

GORM Playground Link

go-gorm/playground#485

Description

It looks like DB.Model().Find() use values from the previous row if the current one has NULL in the cell that has default:NULL. This happens with SQLite driver and Gorm 1.23.6. Rolling back to 1.23.5 fixes the problem.

@github-actions github-actions bot added the type:with reproduction steps with reproduction steps label Jun 12, 2022
@cburgmer
Copy link

We can reproduce with Postgres.

@jamiekurtz
Copy link

we're seeing the same in Postgres, as well

@hungcs
Copy link

hungcs commented Aug 5, 2022

still seeing this with:

gorm.io/datatypes v1.0.7
gorm.io/driver/postgres v1.3.8
gorm.io/gorm v1.23.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:with reproduction steps with reproduction steps
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants