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

Support for NumberExpression with seeded "random" #345

Closed
fkranawetter opened this issue Feb 14, 2013 · 2 comments
Closed

Support for NumberExpression with seeded "random" #345

fkranawetter opened this issue Feb 14, 2013 · 2 comments
Milestone

Comments

@fkranawetter
Copy link

@fkranawetter fkranawetter commented Feb 14, 2013

The NumberExpression in querydsl 2.9.0 currently only supports the random number expression without any seed value.

However, many DBMS support a seeded random, i.e. the pseudo random function will return the same randomized values if the same seed is used.

Example mySQL:

http://dev.mysql.com/doc/refman/5.0/en/mathematical-functions.html#function_rand

flokrates

timowest added a commit that referenced this issue Feb 15, 2013
@timowest
Copy link
Member

@timowest timowest commented Feb 15, 2013

Random with seed is now available via MathExpressions.random(int)

It is not supported by Oracle, PostgreSQL and SQLite, because those DBs have separate seed reset methods.

@timowest
Copy link
Member

@timowest timowest commented Feb 20, 2013

Released in 3.0.0.BETA2

@timowest timowest closed this Feb 20, 2013
@timowest timowest added this to the 3.0.0 milestone Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants