mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13511 Remove interning of aliases in org.hibernate.loader.DefaultEntityAliases
This commit is contained in:
parent
d7a0ffe519
commit
a199f77b83
@ -68,9 +68,7 @@ private String[] determineKeyAlias(Loadable persister, String suffix) {
|
||||
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 String[][] getSuffixedPropertyAliases(Loadable persister) {
|
||||
getPropertyAliases( persister, j )
|
||||
);
|
||||
suffixedPropertyAliases[j] = StringHelper.unquote( suffixedPropertyAliases[j], persister.getFactory().getDialect() );
|
||||
intern( suffixedPropertyAliases[j] );
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -171,9 +168,4 @@ public String getSuffix() {
|
||||
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.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 void testNativeQueryWithFormulaAttribute() {
|
||||
}
|
||||
|
||||
@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…
x
Reference in New Issue
Block a user