Skip to content

Commit

Permalink
update InRandomOrder method
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamandlou committed Feb 3, 2024
1 parent 0fb6086 commit 317239a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/gorm/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ func (r *QueryImpl) InRandomOrder() ormcontract.Query {
order = "RAND()"
break
case ormcontract.DriverSqlserver:
order = "RAND()"
order = "NEWID()"
break
case ormcontract.DriverPostgresql:
case ormcontract.DriverPostgres:
order = "RANDOM()"
break
case ormcontract.DriverSqlite:
Expand Down

0 comments on commit 317239a

Please sign in to comment.