Won't Fix
Details
Assignee
UnassignedUnassignedReporter
Dmitry MurashenkovDmitry MurashenkovComponents
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Dmitry Murashenkov
Dmitry MurashenkovComponents
Affects versions
Priority
Created January 17, 2012 at 3:07 PM
Updated April 28, 2014 at 8:23 PM
Resolved October 14, 2013 at 5:06 PM
Attempt to use extra-lazy collections with PostgreSQL ends with invalid syntax exception:
ERROR: subquery in FROM must have an alias
The cause is that AbstractCollectionPersister.generateSelectSizeString fills sqlSelectSizeString query via SimpleSelect.toStatementString and it doesn't add an alias to query. Workaround is to append some alias in Dialect.appendLockHint, but not sure if it doesn't break other functionality.