HHH-4576 - Tests in MySQL using different case for objects as defined in configuration

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17988 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2009-11-16 14:04:16 +00:00
parent a99a524b37
commit a1d2ece5cf
2 changed files with 4 additions and 4 deletions

View File

@ -186,7 +186,7 @@ public class BulkManipulationTest extends FunctionalTestCase {
List l = s.createQuery("from Vehicle").list(); List l = s.createQuery("from Vehicle").list();
assertEquals(l.size(),4); assertEquals(l.size(),4);
s.createSQLQuery( "insert into PICKUP (id, vin, owner) select id, vin, owner from Car" ).executeUpdate(); s.createSQLQuery( "insert into Pickup (id, vin, owner) select id, vin, owner from Car" ).executeUpdate();
l = s.createQuery("from Vehicle").list(); l = s.createQuery("from Vehicle").list();
assertEquals(l.size(),5); assertEquals(l.size(),5);
@ -194,7 +194,7 @@ public class BulkManipulationTest extends FunctionalTestCase {
t.commit(); t.commit();
t = s.beginTransaction(); t = s.beginTransaction();
s.createSQLQuery( "delete from TRUCK" ).executeUpdate(); s.createSQLQuery( "delete from Truck" ).executeUpdate();
l = s.createQuery("from Vehicle").list(); l = s.createQuery("from Vehicle").list();
assertEquals(l.size(),4); assertEquals(l.size(),4);
@ -207,7 +207,7 @@ public class BulkManipulationTest extends FunctionalTestCase {
assertEquals(0,s.createSQLQuery( "delete from SUV where owner = :owner" ).setString( "owner", "NotThere" ).executeUpdate()); assertEquals(0,s.createSQLQuery( "delete from SUV where owner = :owner" ).setString( "owner", "NotThere" ).executeUpdate());
assertEquals(1,s.createSQLQuery( "delete from SUV where owner = :owner" ).setString( "owner", "Joe" ).executeUpdate()); assertEquals(1,s.createSQLQuery( "delete from SUV where owner = :owner" ).setString( "owner", "Joe" ).executeUpdate());
s.createSQLQuery( "delete from PICKUP" ).executeUpdate(); s.createSQLQuery( "delete from Pickup" ).executeUpdate();
l = s.createQuery("from Vehicle").list(); l = s.createQuery("from Vehicle").list();
assertEquals(l.size(),0); assertEquals(l.size(),0);

View File

@ -26,6 +26,6 @@
<sql-query name="native-delete-car"> <sql-query name="native-delete-car">
<synchronize table="Car"/> <synchronize table="Car"/>
delete from CAR where owner = ? delete from Car where owner = ?
</sql-query> </sql-query>
</hibernate-mapping> </hibernate-mapping>