HHH-5231 HHH-5220 : Fixes for DB2 and PostgreSQL unit tests
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19526 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
7690f9a493
commit
84f0b00bc6
|
@ -99,9 +99,11 @@ public class ManyToManyTest extends TestCase {
|
|||
s.close();
|
||||
|
||||
s = openSession();
|
||||
tx = s.beginTransaction();
|
||||
List result = s.createCriteria( Supplier.class ).createAlias( "suppStores", "s" ).add(
|
||||
Restrictions.eq( "s.name", "Fnac" ) ).list();
|
||||
assertEquals( 1, result.size() );
|
||||
tx.commit();
|
||||
s.close();
|
||||
}
|
||||
public void testDefaultCompositePk() throws Exception {
|
||||
|
|
|
@ -71,7 +71,7 @@ public class SubselectTest extends TestCase {
|
|||
HighestBid highestBid = (HighestBid) query.list().iterator().next();
|
||||
|
||||
assertEquals(200.0, highestBid.getAmount());
|
||||
|
||||
tx.rollback();
|
||||
s.close();
|
||||
|
||||
|
||||
|
|
|
@ -290,6 +290,10 @@ public class PostgreSQLDialect extends Dialect {
|
|||
return "select now()";
|
||||
}
|
||||
|
||||
public boolean supportsTupleDistinctCounts() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public String toBooleanValueString(boolean bool) {
|
||||
return bool ? "true" : "false";
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
<property name="sizeKb" lazy="true">
|
||||
<column name="size_mb"
|
||||
read="size_mb * 1024.0"
|
||||
write="? / 1024.0"/>
|
||||
write="? / cast( 1024.0 as float )"/>
|
||||
</property>
|
||||
</class>
|
||||
|
||||
|
|
Loading…
Reference in New Issue