I noticed that the MYSQLDialect defines rand()
function as:
registerFunction("rand", new NoArgSQLFunction("rand", StandardBasicTypes.DOUBLE));
But, mysql allows use this function with argument (seed). [ approve ]
I have extended MySQLDialect and redefined this function and my code works correctly now. Nonetheless i want to know - this is bug or feature? Should i create an issue in hibernate bug tracker?
hibernate version: 4.3.6.Final
Yes this is bug.. I found the open issue in hibernate bug tracker.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.