HHH-5045 org.hibernate.test.hql.HQLTest failure running testConcatenation with Ingres
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19169 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
42cd240d2a
commit
004c4f240f
|
@ -15,6 +15,7 @@ import org.hibernate.Hibernate;
|
||||||
import org.hibernate.QueryException;
|
import org.hibernate.QueryException;
|
||||||
import org.hibernate.dialect.DB2Dialect;
|
import org.hibernate.dialect.DB2Dialect;
|
||||||
import org.hibernate.dialect.HSQLDialect;
|
import org.hibernate.dialect.HSQLDialect;
|
||||||
|
import org.hibernate.dialect.IngresDialect;
|
||||||
import org.hibernate.dialect.MySQLDialect;
|
import org.hibernate.dialect.MySQLDialect;
|
||||||
import org.hibernate.dialect.Oracle8iDialect;
|
import org.hibernate.dialect.Oracle8iDialect;
|
||||||
import org.hibernate.dialect.PostgreSQLDialect;
|
import org.hibernate.dialect.PostgreSQLDialect;
|
||||||
|
@ -640,12 +641,19 @@ public class HQLTest extends QueryTranslatorTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testConcatenation() {
|
public void testConcatenation() {
|
||||||
if ( getDialect() instanceof MySQLDialect || getDialect() instanceof SybaseDialect || getDialect() instanceof Sybase11Dialect || getDialect() instanceof SybaseASE15Dialect || getDialect() instanceof SybaseAnywhereDialect || getDialect() instanceof SQLServerDialect ) {
|
if ( getDialect() instanceof MySQLDialect || getDialect() instanceof SybaseDialect
|
||||||
|
|| getDialect() instanceof Sybase11Dialect
|
||||||
|
|| getDialect() instanceof SybaseASE15Dialect
|
||||||
|
|| getDialect() instanceof SybaseAnywhereDialect
|
||||||
|
|| getDialect() instanceof SQLServerDialect
|
||||||
|
|| getDialect() instanceof IngresDialect) {
|
||||||
// SybaseASE15Dialect and SybaseAnywhereDialect support '||'
|
// SybaseASE15Dialect and SybaseAnywhereDialect support '||'
|
||||||
// MySQL uses concat(x, y, z)
|
// MySQL uses concat(x, y, z)
|
||||||
// SQL Server replaces '||' with '+'
|
// SQL Server replaces '||' with '+'
|
||||||
//
|
//
|
||||||
// this is syntax checked in {@link ASTParserLoadingTest#testConcatenation}
|
// this is syntax checked in {@link ASTParserLoadingTest#testConcatenation}
|
||||||
|
// Ingres supports both "||" and '+' but IngresDialect originally
|
||||||
|
// uses '+' operator; updated Ingres9Dialect to use "||".
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assertTranslation("from Human h where h.nickName = '1' || 'ov' || 'tha' || 'few'");
|
assertTranslation("from Human h where h.nickName = '1' || 'ov' || 'tha' || 'few'");
|
||||||
|
|
Loading…
Reference in New Issue