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

Comments

Projects
None yet
2 participants
@fkranawetter

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Feb 15, 2013

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Feb 20, 2013

Member

Released in 3.0.0.BETA2

Member

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