|
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
4.2.12
|
|
Assignee:
|
Brett Meyer
|
|
Components:
|
core
|
|
Created:
|
23/Apr/14 5:49 AM
|
|
Priority:
|
Major
|
|
Reporter:
|
Jan Martiška
|
|
|
Bug introduced by the fix for
HHH-9078
. In AbstractCollectionPersister's method generateSelectSizeString, it doesn't count with the fact that getTableName() can return a SQL subquery rather than a table name. In particular, this happens in the case of collection persister (OneToManyPersister) when the underlying element persister is a UnionSubclassEntityPersister (there might be more such cases). The generated select size string then contains a SELECT from a table denoted by a subquery, but it fails on MSSQL, MySQL and PostgreSQL because these DBs require derived tables to have an alias.
Therefore, org.hibernate.test.unionsubclass.UnionSubclassTest.testUnionSubclass fails on these databases.
To reproduce, run the mentioned test on MSSQL, MySQL or PostgreSQL.
|
|
|
|
|
|