HHH-13511 Remove interning of aliases in org.hibernate.loader.DefaultEntityAliases
This commit is contained in:
parent
4c90b9fee7
commit
60015afd85
|
@ -68,9 +68,7 @@ public class DefaultEntityAliases implements EntityAliases {
|
|||
else {
|
||||
aliases = keyColumnsCandidates;
|
||||
}
|
||||
final String[] rtn = StringHelper.unquote( aliases, persister.getFactory().getDialect() );
|
||||
intern( rtn );
|
||||
return rtn;
|
||||
return StringHelper.unquote( aliases, persister.getFactory().getDialect() );
|
||||
}
|
||||
|
||||
private String[][] determinePropertyAliases(Loadable persister) {
|
||||
|
@ -132,7 +130,6 @@ public class DefaultEntityAliases implements EntityAliases {
|
|||
getPropertyAliases( persister, j )
|
||||
);
|
||||
suffixedPropertyAliases[j] = StringHelper.unquote( suffixedPropertyAliases[j], persister.getFactory().getDialect() );
|
||||
intern( suffixedPropertyAliases[j] );
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -171,9 +168,4 @@ public class DefaultEntityAliases implements EntityAliases {
|
|||
return suffix;
|
||||
}
|
||||
|
||||
private static void intern(String[] strings) {
|
||||
for ( int i = 0; i < strings.length; i++ ) {
|
||||
strings[i] = strings[i].intern();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ import org.hibernate.dialect.function.SQLFunction;
|
|||
import org.hibernate.stat.Statistics;
|
||||
import org.hibernate.type.StandardBasicTypes;
|
||||
|
||||
import org.hibernate.testing.FailureExpected;
|
||||
import org.hibernate.testing.SkipForDialect;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||
|
@ -95,7 +94,6 @@ public class QueryAndSQLTest extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@FailureExpected(jiraKey = "HHH-2225")
|
||||
public void testNativeQueryWithFormulaAttributeWithoutAlias() {
|
||||
String sql = "select TABLE_NAME , sysdate() from all_tables where TABLE_NAME = 'AUDIT_ACTIONS' ";
|
||||
Session s = openSession();
|
||||
|
|
Loading…
Reference in New Issue