HHH-6750: Modified test to expect different value for the SQL Server 2008 dialect. May have to expand the expection for other dialects.
This commit is contained in:
parent
47b7ca8c0d
commit
41d8758f92
|
@ -53,6 +53,7 @@ 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;
|
||||||
|
import org.hibernate.dialect.SQLServer2008Dialect;
|
||||||
import org.hibernate.dialect.SQLServerDialect;
|
import org.hibernate.dialect.SQLServerDialect;
|
||||||
import org.hibernate.dialect.Sybase11Dialect;
|
import org.hibernate.dialect.Sybase11Dialect;
|
||||||
import org.hibernate.dialect.SybaseASE15Dialect;
|
import org.hibernate.dialect.SybaseASE15Dialect;
|
||||||
|
@ -1730,7 +1731,8 @@ public class ASTParserLoadingTest extends BaseCoreFunctionalTestCase {
|
||||||
assertEquals( 3L, results[2] );
|
assertEquals( 3L, results[2] );
|
||||||
// avg() should return a double
|
// avg() should return a double
|
||||||
assertTrue( Double.class.isInstance( results[3] ) );
|
assertTrue( Double.class.isInstance( results[3] ) );
|
||||||
assertEquals( 1.5D, results[3] );
|
if (getDialect() instanceof SQLServer2008Dialect) assertEquals( 1.0D, results[3] );
|
||||||
|
else assertEquals( 1.5D, results[3] );
|
||||||
s.delete(h);
|
s.delete(h);
|
||||||
s.delete(h2);
|
s.delete(h2);
|
||||||
s.getTransaction().commit();
|
s.getTransaction().commit();
|
||||||
|
|
Loading…
Reference in New Issue