HHH-3668 : Sybase does not support implicit conversion from character types to numeric types causes failing unit tests
git-svn-id: https://svn.jboss.org/repos/hibernate/core/branches/Branch_3_2@15715 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
1e175bf5ee
commit
592f7b4e06
|
@ -23,7 +23,7 @@ public class NativeQueryTest extends AbstractJPATest {
|
|||
public void testJpaStylePositionalParametersInNativeSql() {
|
||||
Session s = openSession();
|
||||
s.beginTransaction();
|
||||
s.createSQLQuery( "select NAME from EJB3_ITEM where ITEM_ID = ?1" ).setParameter( "1", "123" ).list();
|
||||
s.createSQLQuery( "select NAME from EJB3_ITEM where ITEM_ID = ?1" ).setParameter( "1", new Long( 123 ) ).list();
|
||||
s.getTransaction().commit();
|
||||
s.close();
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ import org.hibernate.dialect.Oracle8iDialect;
|
|||
import org.hibernate.dialect.PointbaseDialect;
|
||||
import org.hibernate.dialect.PostgreSQLDialect;
|
||||
import org.hibernate.dialect.SAPDBDialect;
|
||||
import org.hibernate.dialect.SQLServerDialect;
|
||||
import org.hibernate.dialect.SybaseDialect;
|
||||
import org.hibernate.dialect.TimesTenDialect;
|
||||
import org.hibernate.engine.SessionFactoryImplementor;
|
||||
|
@ -2126,7 +2127,7 @@ public class FooBarTest extends LegacyTestCase {
|
|||
s.find("select count(*) from Baz as baz where 1 in indices(baz.fooArray)");
|
||||
s.find("select count(*) from Bar as bar where 'abc' in elements(bar.baz.fooArray)");
|
||||
s.find("select count(*) from Bar as bar where 1 in indices(bar.baz.fooArray)");
|
||||
if ( !(getDialect() instanceof DB2Dialect) && !(getDialect() instanceof Oracle8iDialect ) ) {
|
||||
if ( !(getDialect() instanceof DB2Dialect) && !(getDialect() instanceof Oracle8iDialect ) && !( getDialect() instanceof SybaseDialect && !(getDialect() instanceof SQLServerDialect ) ) ) {
|
||||
s.find("select count(*) from Bar as bar, bar.component.glarch.proxyArray as g where g.id in indices(bar.baz.fooArray)");
|
||||
s.find("select max( elements(bar.baz.fooArray) ) from Bar as bar, bar.component.glarch.proxyArray as g where g.id in indices(bar.baz.fooArray)");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue