Author: stliu
Date: 2010-04-21 01:14:40 -0400 (Wed, 21 Apr 2010)
New Revision: 19257
Modified:
core/branches/Branch_3_5/core/src/main/java/org/hibernate/persister/entity/UnionSubclassEntityPersister.java
Log:
HHH-5140 quoted column doesn't be quoted in sub-query
Modified:
core/branches/Branch_3_5/core/src/main/java/org/hibernate/persister/entity/UnionSubclassEntityPersister.java
===================================================================
---
core/branches/Branch_3_5/core/src/main/java/org/hibernate/persister/entity/UnionSubclassEntityPersister.java 2010-04-21
01:58:27 UTC (rev 19256)
+++
core/branches/Branch_3_5/core/src/main/java/org/hibernate/persister/entity/UnionSubclassEntityPersister.java 2010-04-21
05:14:40 UTC (rev 19257)
@@ -423,7 +423,7 @@
buf.append( dialect.getSelectClauseNullString(sqlType) )
.append(" as ");
}
- buf.append( col.getName() );
+ buf.append( col.getQuotedName( dialect ) );
buf.append(", ");
}
buf.append( clazz.getSubclassId() )